STEP 7: We are ready for the user to start guessing letters! Let's give them 10 tries.

  • From add Loop with Range to the bottom of the program.
  • Change the number in range() from 5 to 10. This will set the number of guesses that they have!
  • Click GRAPHICS, and go to . Add Stage Ask indented inside the loop.
  • Change choice to letter_guess and set the arguments in .ask() to ("Guess a letter!", 0, -200)

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)