Chaining Iterators

Learn how to chain iterators using a generator.

Now we will do something more useful. We will chain two iterators together so that you get a single iterator that returns all the values of one iterator, followed by all the values of another iterator.

Identity generator

First, we will look at an ...

Get hands-on with 1400+ tech skills courses.