title: Multiple print on game in python
body: <p>I'm trying to write a console hangman game. If I get a question wrong it prints a man getting hanged by his head and then if I missed again it prints the new image as well as the previous one (see the output below). How can I show only one text image?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import random
  import urllib
  
  
  animals = urllib.urlopen('http://davidbau.com/data/animals').read().split()
  #animals = ('dog','cat','sheep','mouse','frog','worm','bird','lion','dear')
  while True:
  
      print 'time to play hangman'
      print 'hint: the word is an animail'
      secret = random.choice(animals)
      guesses = 'aeiou'
      turns = 5
  
      while turns &gt; 0:
          missed = 0
          for letter in secret:
              if letter in guesses:
                  print letter,
              else:
                  print '_',
                  missed += 1
  
          print
  
          if missed == 0:
              print 'You win!'
              break
  
          guess = raw_input('guess a letter: ')
          guesses += guess
  
          if guess not in secret:
              turns -= 1
              print 'Nope.'
              print turns, 'more turns'
              if turns &lt; 5: print """
  -------
  |   |
  |   O
  |
  |
  |
  |
  |
  ---------
  """
              if turns &lt; 4: print """
  -------
  |   |
  |   O
  | \_|_/
  |
  |
  |
  |
  ---------
  """
              if turns &lt; 3: print """
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |
  |
  |
  ---------
  """
              if turns &lt; 2: print """
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |  / \
  |
  |
  ---------
  """
              if turns &lt; 1: print """
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |  / \
  | d   b
  |
  ---------
  """
              if turns == 0:
                  print 'The answer is', secret
                  break
  
  
      user = raw_input("\n\tShall we play another game? [y|n] ")
      again = "yes".startswith(user.strip().lower())
      if not again:
          raw_input ("\n\n\nPress enter to exit")
          break
  </code></pre>
  
  <p>Here is the output (notice how it prints multiple times):</p>
  
  <pre><code>================================ RESTART ================================
  &gt;&gt;&gt; 
  &gt;&gt;&gt; time to play hangman
  hint: the word is an animail
  _ _ a _ _ i _ _
  guess a letter: p
  Nope.
  4 more turns
  
  -------
  |   |
  |   O
  |
  |
  |
  |
  |
  ---------
  
  _ _ a _ _ i _ _
  guess a letter: g
  Nope.
  3 more turns
  
  -------
  |   |
  |   O
  |
  |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |
  |
  |
  |
  ---------
  
  _ _ a _ _ i _ _
  guess a letter: l
  Nope.
  2 more turns
  
  -------
  |   |
  |   O
  |
  |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |
  |
  |
  ---------
  
  _ _ a _ _ i _ _
  guess a letter: m
  Nope.
  1 more turns
  
  -------
  |   |
  |   O
  |
  |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |  / |
  |
  ---------
  
  _ _ a _ _ i _ _
  guess a letter: n
  Nope.
  0 more turns
  
  -------
  |   |
  |   O
  |
  |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |
  |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |  / |
  |
  ---------
  
  
  -------
  |   |
  |   O
  | \_|_/
  |   |
  |  / | d   b
  |
  ---------
  
  The answer is crayfish
  
      Shall we play another game? [y|n] 
  </code></pre>