Iteration

suggest change

A generator object supports the iterator protocol. That is, it provides __next__(), which the built-in next() calls to step through its execution, and its __iter__ method returns itself. This means that a generator can be used in any language construct which supports generic iterable objects.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents