so what I've been trying to do is store data on a program so that way when I reopen my python program so all the previous data is still there. what I want to do is have the ability to use an input statement and allow the user to add data and then have it be saved. I want it to be saved if its numbers or words so if anyone has any suggestions or ideas to give me on how to do this please let me know or point me in the right direction please let me know.
list = [1, 2, 3, 4]
bon = str(next(reversed(list)))
print(bon)
a = input("new: ")
if a == 'new':
bag = bon + 1