Skip to content

Itertools practice problems in Python

Difficulty:
Category:
Tag:

Showing 8 of 8

Status Title Difficulty
accumulate and pairwise: max drawdown in one pass Easy
batched: page a stream, and validate before you yield Easy
groupby: summarise rows without losing half of them Medium
itertools: take n across chunks without over-consuming Easy
Moving average twice: naive, cumulative-sum, and knowing which to use Medium
Streaming pipelines end to end Hard
The single-consumption contract Medium
zip(strict=True) and the silent-truncation bug Easy