Mega Code Archive

 
Categories / Python Tutorial / Dictionary
 

Items method returns all the items as a list of items in the form of (key, value)

d = {'title': 'Python Web Site', 'url': 'http://www.python.org', 'spam': 0} print d.items()