I need a little bit of help on overwriting python variables. Here's the best example I could give. IF someone opens up my program (in .exe or .py) and this were to come up:
var = 5
var = raw_input("Enter the new variable value: ") ##THE PERSON ENTERS 3
var = 3
Now, the user closes the file/program, next time they open it, they want the program to remember that var = 3, so it overwrote the var = 5 with var = 3. I don't know if this is possible, but if it is, could you let me know?
To Clarify: I want my .py or .exe to remember that a variable was changed, and overwrite the old variable with the new one, so the next time they open the file, the variable is already changed.