0

in the example below why the variable y doesn't change eventought, we change the value of x

x = 10
y = x
x = x + 1

I see the opposite here below

x = [0, 1]
y = x
x.pop()

in fact, everything in python is an object so why when we changed x, y changed automatically

0 Answers0