The update method updates one dictionary with the items of another : Update : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Update »

 

The update method updates one dictionary with the items of another


d = 
'title': 'Python Web Site', 
'url': 'http://www.python.org', 
'changed': 'Ma14 22:09:15 MET 2005'

 
x = {'title': 'Python Language Website'} 
d.update(x
print d



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Dictionary
» Update