Iterators

This lesson will discuss built-in iterators in Python, and teach you to build your own custom iterator class.

We'll cover the following

Iterators

As we saw previously, in Python we use the “for” loop and “while” to iterate over the contents of objects:

Get hands-on with 1000+ tech skills courses.