>>> a = 100
>>> b =a
>>> b = b+ 10
>>> b
110
>>> a
100
>>> a = [1,2,3]
>>> b = a
>>> b.insert(0,0)
>>> b
[0, 1, 2, 3]
>>> a
[0, 1, 2, 3]
Why the behaviour is different in case when a is int and when a is list ? What should I do if I want to preserve the value of list a??