← Back to archive

Stdle #147 · iteration · 2026-10-31

What does this Python snippet output?

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

nums = [2, 4, 6]
print(any(n % 2 for n in nums))
print(all(n % 2 == 0 for n in nums))
Iteration
2 lines
4 attempts left

Answer & explanation