STEP 14: Every time the user guesses wrong, let's tell them one more letter of the password as a hint!

  • Click LOGIC, then and drop Add Value indented under the for-loop only (4 spaces!)
  • Change my_var to revealed_letters and 1 to letter.
  • From GRAPHICS and , drag Say in the loop and change the string to revealed_letters.
  • Drag in Wait so that it is also indented INSIDE the loop (but not the if-statement!).

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)