A lecture sample code from http://inventwithpython.com/chapter9.html
Classic interactive command-line Hangman word guessing game in Python