Skip to main content
Loading page…
Python Mastery
Chapter 16
Lesson 4 of 4
itertools, map, filter
Contents
Notes
Tutor
Note
Bridge from the Functional Python Module
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
28 min
9 activities
0 of 9 done
In this lesson
1
Bridge from the Functional Python Module
2
map() and filter() — Quick Recap
3
itertools — The Functional Toolkit
4
Building a Data Pipeline with itertools
5
Check: groupby Prerequisite
6
Consume groupby Groups Immediately
7
Practice: Round-Robin Scheduler
8
Functional Toolkit Checkpoint
9
Design a Pipeline
Objectives
Use map() and filter() as lazy alternatives to comprehensions
Compose itertools functions (chain, islice, count, cycle, groupby) to build data pipelines
Recognise when functional-style pipelines are clearer than nested loops
Build a small multi-step data pipeline using itertools primitives
Chapter 16 · Iterators, Generators & Comprehensions
Comprehensions
Iterables & Iterators
Generators & yield
itertools, map, filter
Previous: Generators & yield
Next: Closures & First-Class Functions