STEP 10: Let's switch to the function called get_user_input. This is where we'll ask the user for the password.

  • In GRAPHICS, go to and drag Ask indented inside get_user_input.
  • Change choice to response and sprite to text_sprite.
  • Finally, change "Yes or no?" to "Please enter the password:".
  • Press Run and enter something into the ask box. See how the program continues to ask you a question?

    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)