May-12-2018, 04:34 PM
I suppose SET is a list. You should provide more details.
List is a mutable data type so changes to a list variable will remain. And assigning C to SET will point to same variable.
To copy the contents of SET to new variable C, you can do:
List is a mutable data type so changes to a list variable will remain. And assigning C to SET will point to same variable.
To copy the contents of SET to new variable C, you can do:
C=SET[:]