Mega Code Archive

 
Categories / Python Tutorial / Dictionary
 

The update method updates one dictionary with the items of another

d = {  'title': 'Python Web Site',  'url': 'http://www.python.org',  'changed': 'Mar 14 22:09:15 MET 2005'  }  x = {'title': 'Python Language Website'}  d.update(x)  print d