Iterators

Iterators — objects which implements the protocol, which consist of the methods __iter__() and __next__().

  • are objects which can be traversed through or iterated upon.
  • is any python type that can be used with a ‘for in loop’.
  • objects that contains a countable number of values.

Iterators — Structure map

Clickable & Draggable!

Iterators — Related pages: