Iterables in Python

Get details on iterating a sequence in Python.

What is iterable?

Any object from which the iter built-in function can acquire an iterator is called iterable.

All sequences are iterable.

💡 Python obtains iterators from iterables.

Mostly, we iterate via a for loop. For example:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy