map, filter, zip, enumerate

transform, keep, pair, and count — lazily

25 min · interactive lesson with runnable code and 6 graded exercises.

What you'll be able to do

  • Use map, filter, zip, and enumerate fluently
  • Explain that they return lazy, single-pass iterators
  • Know when a comprehension is the clearer choice
  • Handle unequal lengths with zip / zip_longest

The full lesson is free with an account.

map

filter

zip

enumerate

They're lazy

When to use which

Common pitfalls