concept __next__ in category python

appears as: __next__
Python Workout: 50 ten-minute exercises

This is an excerpt from Manning's book Python Workout: 50 ten-minute exercises.

  • The __next__ method, which must be defined on the iterator