title: Problem with hangman project , the letters reset each time in python
body: <pre><code>import random
  
  list_of_words = [&quot;ability&quot;, &quot;able&quot;, &quot;above&quot;, &quot;administration&quot;, &quot;against&quot;, &quot;agency&quot;, &quot;along&quot;,
                  &quot;almost&quot;, &quot;answer&quot;]
  
  
  guessword = random.choice(list_of_words)
  
  while True:
      result = input(&quot;Enter your guess: &quot;)
  
      for word in guessword:
  
          if word in result:
              print(word)
  
          else:
              print(&quot;_&quot;)
  </code></pre>
  <p>I'm making a hangman project. When the user enters a letter, it should be present even when the next character is inputted, but the problem is that it resets completely. How do I fix this?</p>