STEP 8: A sneakily important part of our game is going to be uppercase and lowercase letters!

.upper() and .lower() change all letters in a string to uppercase or lowercase!

  • Find the line of code you just added in the last activity with stage.ask().
  • Add .lower() to the end of that code, like this: stage.ask("Guess a letter!", 0, -200).lower()
  • Storing a lowercase letter in letter_guess is important because we will check to see that it's in the word!

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)