6.3.4 Iterating over listsThe foreach command can be used to iterate over the members of a list; it will be covered in more detail in Section 7.3. The following example iterates over the words in a sentence: pyxplot> poem = "An aged thrush, frail, gaunt, and small, "
|