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.
I have text file "values.txt" which includes of:
k=10
t=20
r=8.5
(separated by "enter")
and I also have python file in where is put the equation:
a = k*t/r
for now I've figured out only these:
txt = open("values.txt").read()
print(txt)
a = k*t/r
print(a)
txt.close()