The rest of the list does a great job explaining the situation, which bears out in the code itself. If you look farther down in the code sample in Chapter 9, you'll see the function called twice.
http://inventwithpython.com/chapter9/ << snipped >> print('H A N G M A N') missedLetters = '' correctLetters = '' secretWord = getRandomWord(words) gameIsDone = False << end snippet >> And then again a bit below: << snippet >> gameIsDone = False secretWord = getRandomWord(words) else: break << end snippet >>
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor