STEP 6: Now we need a way to store and display wrong guesses. This will help the user keep track of their guesses!

  • From add Empty List and change the variable name from my_list to wrong_guesses.
  • From add Variable Display and change the display name to wrong_display.
  • Change the arguments in .Display() to (wrong_guesses, 0, 0).

Whenever the user guesses a letter that isn't in the word, we will add it to this list and update the display!

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)