STEP 4: Let's prepare to give the player a hint about how long the password is before they start guessing!

  • Click LOGIC, then and drag out Length.
  • Change the name of the variable from var_length to password_length.
  • Change the argument in len() from my_var to password.
  • Click GRAPHICS and . Drag out Say and replace the string with password_length.

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)