Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python dictionary append

testing1={'one':1,'two':2}
''' update() is the method of dict() merges another dict into existing ones '''
''' it replaces the keys of exisiting ones with the the new ones '''
testing1.update({'two':3,'noice':69}) 
print(testing1) """ {'one':1,'two':3,'noice':69} """
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #Python #dictionary #append
ADD COMMENT
Topic
Name
4+6 =