← Back to archive

Stdle #51 · modern · 2026-07-27

What does this Python snippet output?

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

total = 0
nums = [3, 1, 4, 1, 5]
print([total := total + n for n in nums])
Modern
4 attempts left

Answer & explanation