STEP 17: We're almost done with our program! Let's remove the prompt from the stage.

  • In GRAPHICS, click on and drag Remove Sprite to the bottom of main().
  • Change the variable inside the ( ) from sprite to text.
  • Click Run and type the correct password into the ask box: codesters123.
  • See how our loop stops? break ends our loop, but only IF the user's response equals the password.

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)