Module 14 explains what really happens in a for loop, and then shows you the easiest way to write your own sources of values: generators. By the end you can write iterators and generators, chain them into memory-friendly pipelines, work with endless streams, and send values and errors into a running generator.
More lessons in Complete Python Programming