12.1 Python's Built-In Iterables and Iterators PDF
12.1 Python's Built-In Iterables and Iterators PDF
You should always be aware of whether you are dealing with an iterable or an iterator
why? if an object is an iterable (but not an iterator) you can iterate over it many times
enumerate(l1) → iterator
open('cars.csv') → iterator