DEMO #3: In this example, you'll be able to run the whole loop to see if your prediction was correct!

Commands that are INSIDE a loop have a purple block next to them, like this: ····

Any command that should be part of the loop needs to be indented.

  • Click Run and follow the directions on the stage to view the example.
  • Click Submit and Next when the loop finishes running. It must finish before you can move on!

To navigate the page using the TAB key, first press ESC to exit the code editor.

  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)