--Originally published at Start in the world of the #TC101
Loops in Think Python
Python provides a more convenient way to express a definite loop. The for statement iterates over a range of values. These values can be a numeric range, or, as we shall, elements of a data structure like a string, list, or tuple.
Examples: