title: How to add an item to a list in python and save it
body: <p>My program is set up so I can add items to the lists from terminal but whenever I do this for example <code>myFile.append('hello')</code> it keeps it there but when I exit terminal and do it again <code>'hello'</code> is deleted. Please help. Thank you!</p>
  
  <p>Code</p>
  
  <pre><code>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)
  </code></pre>