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.

Level: beginnerTopic: Python advanced

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.