STEP 11: Let's show the user that they guessed correctly by revealing the letter in the hidden list!

  • Drag Set Value at Index onto the next line inside the if-block. This will reveal a correct letter!
  • Change my_list to hidden_list, 0 to letter_index, and my_var to letter_guess.
  • From , drag in Update Display. Change my_display to hidden_display and my_var to hidden_list. Click Run and enter a word. Guess a correct letter! Do you see how the letter is revealed?

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)