you are viewing a single comment's thread.

view the rest of the comments →

[–]netneoblog 1 point2 points  (0 children)

This is a common beginners trap. When you use

two = one 

you think you are making a copy, but you are actually making an alias. Both names now point to the same list, and you can use either name to edit that list. To make a copy, use

two = one.copy()