title: import variables from a text file and use it in an equation
body: <p>How I can import data from .txt and state them as my new variables? And each time save an output as a new text file with my input variables and the solution. </p>
  
  <p>I have text file "values.txt" which includes of:</p>
  
  <pre><code>k=10
  t=20
  r=8.5
  </code></pre>
  
  <p>(separated by "enter")</p>
  
  <p>and I also have python file in where is put the equation:
  <code>a = k*t/r</code></p>
  
  <p>for now I've figured out only these:</p>
  
  <pre><code>txt = open("values.txt").read()
  print(txt)    
  
  a = k*t/r
  print(a)
  
  txt.close()
  </code></pre>