Iterators and Generators

How Python loops really work, lazy generators, and context managers for clean set-up and tidy-up.

  1. 01

    How a For Loop Works

    • easy
  2. 02

    Write a Generator

    • easy
    • Pro
  3. 03

    Lazy Evaluation Pitfalls

    • medium
    • Pro
  4. 04

    Context Managers

    • medium
    • Pro
  5. 05

    Use the Itertools Module

    • medium
    • Pro
  6. 06

    Build a Generator Pipeline

    • hard
    • Pro