title: Masking in Python
body: <p>I'm attempting to arrange the following code so that a digit representing the character place in the word appears below the mask. In other words:</p>
  
  <pre><code>  _ _ _
    1 2 3
  </code></pre>
  
  <p>Here's my current code:</p>
  
  <pre><code>secretWord = 'dog'
  
  mask = '_'  * len(secretWord)
  for i in range (len(secretWord)):
      if secretWord[i] in correctLetters:
          mask = mask[:i] + secretWord[i] + mask [i+1:]
  for letter in mask:
      print (letter, end='')
  
  print ()
  </code></pre>
  
  <p>How would I go about this?</p>