← Back to archive

Stdle #91 · mutability · 2026-09-05

What does this Python snippet output?

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

t = (1, 2, [3])
try:
t[2] += [4]
except TypeError as e:
print(type(e).__name__, t)
Mutability
4 attempts left

Answer & explanation