list = []
while True:
list.append(input())
print(list)
this allows me to add whatever I want to this list. However, Is there a way that I can keep the changes to the list so that when I run the program later all of the things I previously wrote will be on the list?
EDIT: If it matters, I use PyCharm for coding and running my progams