DEMO #2: Wait, what did we just do? One cool thing about Python is that it's really easy to loop through a string!

  • When we loop through a string, the loop runs once for each letter in the string.
  • Run the program to see an example. Follow the directions on stage to complete the activity.
  • Once you're finished with the demo, click Submit and Next to move on.

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)