Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dict copy()

# This method returns a shallow copy of the dictionary. 
# It doesn't modify the original dictionary.
original_marks = {'Physics':67, 'Maths':87}
copied_marks = original_marks.copy()
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #dict
ADD COMMENT
Topic
Name
2+5 =