Building Pipelines

Learn pipelining with the generators in this lesson.

We'll cover the following...

Chaining the iterators

Multiple iterators chained together can pipeline a series of operations. Python’s generator functions and generator expressions can help us build robust iterator chains in no time.

Example

Suppose we have a generator that produces numbers from 1 to 10 inclusively, and another generator that squares ...