← Back to archive

Stdle #77 · classes · 2026-08-22

What does this Python snippet output?

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

class Tag:
seen = []
x = Tag(); y = Tag()
x.seen = [1]
y.seen.append(2)
print(x.seen, y.seen, Tag.seen)
Classes
4 attempts left

Answer & explanation