AI engineering glossary · Python advanced
What is iterable?
Iterable: Any object that can supply its items one at a time, such as a list, string, dictionary or file. It works with for loops and functions like sum(). Technically, it has an __iter__ method returning an iterator.
Iterable: an example
A list of pincodes, a string and a range are all iterables you can loop over.
Related terms
More Python advanced terms
Where you learn it
Iterable is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.