title: How do I display each element or alphabet as dash after it matches the input for Hangman?
body: <p>I have been on and off programming but recently I have been more active and done some basic projects. However I have been stuck on this particular problem for the past 3 weeks and still cannot seems to solve it. Looked through some codes and tried and only could improve some parts. The bottom is my full code.</p>
  <p>The problems that I faced is the one that I have stated in my title, I need to display the mystery word as dashes and when I guess the unknown word, it was suppose to appear as the only word. One issue is when I guess the word correctly, it only display the single alphabet and reset immediately.</p>
  <pre><code>import random
  
      word_list =[
      &quot;SAXOPHONE&quot;,
      &quot;THEREMIN&quot;,
      &quot;XYLOPHONE&quot;,
      &quot;TROMBONE&quot;,
      &quot;RECORDER&quot;,
      &quot;OCARINA&quot;,
      &quot;HANG&quot;,
      &quot;GUITAR&quot;,
      &quot;PIANO&quot;,
      &quot;DIDGERIDOO&quot;,
      &quot;CELLO&quot;,
      &quot;CLARINET&quot;,
      &quot;BONGO&quot;,
      &quot;DRUM&quot;,
      &quot;FLUTE&quot;,
      &quot;ERHU&quot;,
      &quot;DIZI&quot;,
      &quot;HARMONICA&quot;,
      &quot;GONG&quot;,
      &quot;GUZHENG&quot;
      ]
  
  
  pick_word = random.choice(word_list)
  pick_letter = list(pick_word)
  print(pick_letter)
  
  print(&quot;Welcome to Hangman Instrumental&quot;)
  
  
  turns = 10
  
  while turns &gt; 0:
  
        # input of players(input to accept both lower and upper case)
         player_in = input(str(&quot;\nEnter a Character: &quot;)).upper()
    
        # check if input is the same as the pick letter
         if player_in in pick_letter:
                if player_in in pick_letter:
                        print(player_in)
  
                
          elif len(player_in) != 1:
                   print(&quot;Invalid input please try again&quot;)
  
          
          else:
                  turns -= 1
                  print(&quot;You have &quot;,turns, &quot; turns left&quot;)
                  if turns == 0:
                  print(&quot;You Lose !&quot;)
  
  
    
  </code></pre>