What is the preferred/ usual way of storing data that is entered by the user when running a Python script, if I need the data again the next time the script runs?
Fo
Since you only need the last result, just store the result in a file.
write('something', wb)
It will only store the last result. Then when you re-run the script, do a open and read the previous result.
open
read