DEMO #1: In this interactive activity, you'll learn about looping through a list!

When we loop through a list, the loop runs once for each value in the list.

  • We can therefore use a list and a loop to repeat a set of commands for everything in our list!
  • Click Run to see the the demo. Click Submit and Next to move on after the activity's complete!

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)