Python and FastAPI
Module 8 · Iterators and generators
The iteration protocol, generators and yield, generator expressions, itertools, custom iterables and lazy pipelines.
6 lessons
Follow in order
Use the button below to sign in and unlock lessons.
Your path
Lessons in sequence
Work through these in order—each lesson builds on the previous one.
-
Lesson 1 of 6
8.1 The iterator protocol
-
Lesson 2 of 6
8.2 Generators with yield
-
Lesson 3 of 6
8.3 Generator expressions
-
Lesson 4 of 6
8.4 itertools you will actually use
-
Lesson 5 of 6
8.5 Writing your own iterable
-
Lesson 6 of 6
8.6 Lazy pipelines and streaming data