hope you're doing well. I'd like to ask you people a question I hope you will help me, since I am a beginner and I don't know where else to ask these things, I know here there are a lot of good programmers who can try to help me, thanks. I'd like to create a program when I ask the user what is your name they enter it and then the name gets added into the list automatically, so next time when I do print list the name I entered should be in that list.
list_names = ["James", "John", "Sarah", "Tina"]
print(list_names)
add_name = input("Enter your name: ")
list_names.append(add_name)
print(list_names)
So when I do print(list_names) it gives me the name of the list, when I ask user to enter another name, the name gets added, but when I exit the program and do again print(list_names) the name is not in there. Can you give me any idea, please ?