I want to create a program, but I need a variable that doesn't reset every time I close the program. I don't know how to do it, and all the other answers I found here don't make sense to me. If anyone knows how, please let me know.
I tried these three lines of code that I got from another answer, but I don't yet know how to use it.
file = open("Saved_Variables (Python)","w")
file.write(balance)
file.close()
(I created a folder named "Saved_Variables (Python)")