title: Python 3 hangman for a beginner
body: <pre><code>print("Welcome to hangman. Are you ready to have some fun?")
  
  def play():
   import random
   List = ["random", "words", "list"]
  
   word = str(random.choice(List))
   mistake = 7
   alreadySaid = set()
   board = "_" * len(word)
  
   print(" ".join(board))
   while mistake &gt; 0:
       while True:
           guess = input("Please guess a letter: ")
           if len(guess) &lt;= 1:
               break
           else:
               print("Too long. Enter only one letter.")
       if guess in word:
           alreadySaid.add(guess)
           print("Correct!",guess, " was in the word!")
           board = "".join([guess if guess in word else "_" for str in word])
           if board == word:
               print("Congratulations! You´re correct!!!")
       elif guess not in word:
           mistake -= 1
           print("Wrong!", mistake," mistakes remaining.")
           if mistake &lt;= 0:
              print("Game Over")
        print(" ".join(board))
  
  play()
  </code></pre>
  
  <p>I'm trying to make hangman with python 3 but whenever I input a correct letter it comes out as a word of only that letter. For example for random when I input r the output is r r r r r r when I want r _ _ _ _ _. What do you think is wrong? Also do I have any other problems?</p>