← Back to archive

Stdle #37 · iteration · 2026-07-13

What does this Python snippet output?

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

gen = (x * x for x in range(5))
print(sum(gen))
Iteration
4 attempts left

Answer & explanation