title: How do I permanently change a list after user's input?
body: <pre><code>hiddenWords = ['hello', 'hi', 'surfing']
  print("Would you like to enter a new list of words or end the game? L/E?")
      decision  = input()
      if decision == 'L':
          print('Enter a new list of words')
          newString = input()
          newList = newString.split()
          hiddenWords.extend(newList)
          j = random.randint(0, len(hiddenWords) - 1)
          secretWord = hiddenWords[j]
          exit(0)
  </code></pre>
  
  <p>How do I permanently add the input of the user to the hiddenWords list so that next time I open the application the words the user has entered has been extended onto the hiddenWords list?</p>
  
  <p>Thanks.
  This Code is part of a main body of code.</p>