Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python copy a dictionary to a new variable

# Basic syntax:
copied_dict = dict(original_dict) # or:
copied_dict = original_dict.copy()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #copy #dictionary #variable
ADD COMMENT
Topic
Name
7+7 =