← Back to archive

Stdle #127 · mutability · 2026-10-11

What does this Python snippet output?

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

a = [[1], [2]]
b = a[:]
b.append([3])
print(a)
Mutability
4 attempts left

Answer & explanation