Two names, one list
Take your time, follow the code and check your understanding.
The codeLists
a = [1, 2]
b = a
b.append(3)
print(a)Your answer3 min · no timer
Show solution and explanation
Both names refer to the same mutable list. append changes that list.
[1, 2, 3]