Hi I am trying to create a code that will append items to a list in python through the program itself inside of terminal.
Whenever I use this code it works but when I stop running the code and rerun the new item in the list is gone.
This is currently my code. 'Calc' is a list that has multiple strings so I want to add another item to that list whenever they type that into terminal.
elif userInput in command:
print("Okay, Initializing new command.\n\n")
command1 = raw_input("Which command would you like to add?\nKeyword\nLater Versions\n ").lower()
if command1 == 'keyword':
print('You selected keyword, to exit press enter')
command2 = raw_input("Which Keyword would you like to edit? ")
if command2 == 'calc':
command3 = raw_input("Which Keyword would you like to add? ")
calc.append(command3)
print(calc)