$ python hangman.py
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
This program plays a game of hangman.
Guess letters in the mystery word.
You can only make 8 incorrect guesses before you lose.
See if you can guess the word before you run out of guesses...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
word: - - - - - - - -
incorrect guesses left: 8
Enter a letter: a
good guess, 'a' is in the word.
word: - a - a - - - -
incorrect guesses left: 8
Enter a letter: A
You already guessed 'a', try again...
Enter a letter: b
sorry there is no 'b' in the word.
word: - a - a - - - -
incorrect guesses left: 7
Enter a letter: c
sorry there is no 'c' in the word.
word: - a - a - - - -
incorrect guesses left: 6
Enter a letter: d
sorry there is no 'd' in the word.
word: - a - a - - - -
incorrect guesses left: 5
Enter a letter: e
good guess, 'e' is in the word.
word: - a - a - - e -
incorrect guesses left: 5
Enter a letter: f
sorry there is no 'f' in the word.
word: - a - a - - e -
incorrect guesses left: 4
Enter a letter: g
sorry there is no 'g' in the word.
word: - a - a - - e -
incorrect guesses left: 3
Enter a letter: sdlfjsdlfj
Hey, 'sdlfjsdlfj' isn't an alphabetic character, try again...
Enter a letter: a
You already guessed 'a', try again...
Enter a letter: A
You already guessed 'a', try again...
Enter a letter: b
You already guessed 'b', try again...
Enter a letter: l
good guess, 'l' is in the word.
word: - a - a l l e l
incorrect guesses left: 3
Enter a letter: p
good guess, 'p' is in the word.
word: p a - a l l e l
incorrect guesses left: 3
Enter a letter: r
good guess, 'r' is in the word.
You won!!! Next time I'll win though
Return to Lab 07
Example 2