Earlier, we discussed using range to generate the offsets of items in a string, rather than the items at those offsets. In some programs, though, we need both: the item to use,
plus an offset as we go. Traditionally, this was coded with a simple for loop that also
kept a counter of the current offset: