← Back to archive

Stdle #154 · iteration · 2026-11-07

What does this Python snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

import itertools
data = [[1], [2, 3], []]
print(list(itertools.chain.from_iterable(data)))
Iteration
4 attempts left

Answer & explanation