First page Back Continue Last page Overview Graphics

The “real” deepcopy

>>> from copy import deepcopy

>>> lst1 = ['a','b',['ab','ba']]

>>> lst2 = deepcopy(lst1)

“a”

“b”

“ab”

“ba”

lst1

lst2