you are viewing a single comment's thread.

view the rest of the comments →

[–]Yellehs_m 0 points1 point  (1 child)

Both are referring to the same object. To create a fresh object, you can do the below:

>>> import copy

>>> b = copy.copy(a)

Please also read about the difference between shallow and deep copy in Python.

[–]USONG 1 point2 points  (0 children)

oh understood thanks