and its more general cousin the while loop, are the main ways we code
repetitive tasks as statements in our scripts. Really, though, the for loop (like its relative
the list comprehension, which we met earlier) is a sequence operation. It works on any
object that is a sequence and, like the list comprehension, even on some things that are
not. Here, for example, it is stepping across the characters in a string, printing the
uppercase version of each as it goes: