EasyOutput prediction

Reference semantics on list assignment

What does this code print?

x = [1, 2, 3]
y = x
y.append(4)
print(x)

← → arrow keys to navigate

Sign in to save your progress.