sumit
1/27/2020 - 5:38 PM

copy dictionary without reference

>>> import copy
>>> d1 = {'a':1}
>>> d2 = copy.deepcopy(d1)
>>> d2
{'a': 1}