Skip to content

Iterables and iterators

Coming soon

Understand the iteration protocol: iter(), next(), and StopIteration.

You'll be able to

  • Explain the exact mechanism behind Python for loops
  • Obtain iterators using iter() and advance them with next()
  • Catch StopIteration to understand loop termination

Coming soon

This lesson is being written. It will be free here, like every lesson. The Telegram channel announces new lessons as they open.