Learn
A Day at the Supermarket
String Looping

As we’ve mentioned, strings are like lists with characters as elements. You can loop through strings the same way you loop through lists! While we won’t ask you to do that in this section, we’ve put an example in the editor of how looping through a string might work.

Instructions

1.

Run the code to see string iteration in action!

Folder Icon

Take this course for free

Already have an account?