Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python copy dictionary keep original same

# Python never implicitly copies objects.
dict2 = dict(dict1)
# OR
dict2 = dict1.copy()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #copy #dictionary #original
ADD COMMENT
Topic
Name
9+1 =