Skip to content

Generators practice problems in Python

Difficulty:
Category:
Tag:

Showing 10 of 10

Status Title Difficulty
Batched async stream: never yield inside a cancel scope Hard
batched: page a stream, and validate before you yield Easy
contextmanager: temporarily patch an attribute, and put it back Medium
itertools: take n across chunks without over-consuming Easy
Lazy record batches: what laziness moves Medium
Placement 4/6: generators are consumed once Easy
Streaming pipelines end to end Hard
The single-consumption contract Medium
The streaming sort-merge join Hard
The walrus operator, tastefully Medium