Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 245 Bytes

mutable_objects.md

File metadata and controls

17 lines (13 loc) · 245 Bytes

Mutable Objects

  1. What would be the output of the following program? explain
x = [1, 2 ,3]
y = x
print(x)
print(y)
x[0] = 0
print(x)
print(y)

Solution

Click here to view the solution