STEP 18: There's more to do for a correct guess, but let's take care of what happens when the guess is wrong!

  • From LOGIC and , drag Else into the for loop. Make sure it is indented only once!
  • From , add Append in the else-block. Append letter_guess to the list wrong_guesses.
  • From , add Update Display in the else-block.
  • Change my_display to wrong_display and my_var to wrong_guesses. Click Run and guess wrong!

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)