← Back to archive

Stdle #122 · mutability · 2026-10-06

What does this Python snippet output?

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

import copy
a = [[1, 2], [3, 4]]
b = copy.copy(a)
b[0].append(9)
print(a)
Mutability
4 attempts left

Answer & explanation