← Back to archive

Stdle #46 · mutability · 2026-07-22

What does this Python snippet output?

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

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

Answer & explanation