Python Sample Hangman Text

Use this list to create your hangman pictures. It is a 7 item list, so print(HANGMAN_PICS[0]) will draw the starting picture and print(HANGMAN_PICS[6]) will draw the final picture.

HANGMAN_PICS = ['''
   +---+
       |
       |
       |
      ===''', '''
   +---+
   O   |
       |
       |
      ===''', '''
   +---+
   O   |
   |   |
       |
      ===''', '''
   +---+
   O   |
  /|   |
       |
      ===''', '''
   +---+
   O   |
  /|\  |
       |
      ===''', '''
   +---+
   O   |
  /|\  |
  /    |
      ===''', '''
   +---+
   O   |
  /|\  |
  / \  |
      ===''']

Adapted from the hangman text game at
Sweigart Al (2009-18), "Invent with Python" chapter 8 "Writing the hangman code"