The same list and a copied list

Predict the output · Basic · §3.5 Two names, one container

Predict the three lines of output without running the code.

Code

a = [40, 70, 90]
b = a
c = a.copy()
b.append(60)
c[0] = 100
print(a)
print(b)
print(c)

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.