let's say the following is in a text file
Code:age = 86 favorite number = 1
i know i can use a_file.get() and functions like that but what if i want to get those numbers out of the text file and assign it to variables? also, how do i change those numbers in the text file without adding onto it or rewriting the text?
example: i assign the value 86 from the text file to a variable called test. print test to the screen. ask for a new value. change the value of 86 in the text file to new value.