Intro to Generators and Iterators

Python Morsels Exercise Path

You'll start with a few exercises that could be iterator/generator-powered, but don't necessarily need to be.

This path mostly focuses on getting generator function and generator expression practice, but you'll probably need to write at least one iterator class along the way as well.

This path is recommended for novice-level users or intermediate-level users who are new to generators.

Exercises included
with_previous
uniques_only
lstrip
RandomLooper
chunked
loop_tracker
strict_zip
Loading...