Comment on Python: copying a list the right wayComments−kzrdude14yA much more interesting line of python isb[:] = a # copy a into b, while b keeps its identity.
Comments
A much more interesting line of python is
b[:] = a # copy a into b, while b keeps its identity.