Python Series track
Week 03
Week 3 — Iterators & Generators
Implement the iterator protocol from scratch, write memory-efficient generators with yield, compose pipelines with yield from, and use generator's send() for two-way communication.
Advanced Track5 topicsFree · open source
- Home
- Lectures
- Python Series
- Week 3 — Iterators & Generators
What this lesson covers
5 topics from the advanced track section of the Python Series track. Work through the source materials alongside these concepts.
- __iter__
- __next__
- yield
- yield from
- send()
Lesson materials
README, runnable examples and exercises for every Python Series lesson live in the open-source repository.
Open the source repositoryLearn this lesson with a mentor
Work through the Python Series track on your own, or join a guided cohort at our Pitampura campus and online.