runtime
320 / 500
question 320 Iterators & Generators · hard

Predict: who runs when in a pipeline

Three generator steps and one list comprehension are chained, and islice takes two results. Predict exactly what this prints, line by line.

Watchwhich steps are lazy, which one builds a whole list, and when islice stops asking

Loading your progress…

Predict: who runs when in a pipeline — Python practice · Runtime