← Back to archive

Stdle #138 · iteration · 2026-10-22

What does this Python snippet output?

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

funcs = [lambda: i for i in range(3)]
print([f() for f in funcs])
Iteration
4 attempts left

Answer & explanation