items method returns all the items as a list of items in the form of (key, value). : items « Dictionary « Python Tutorial






d = {'title': 'Python Web Site', 'url': 'http://www.python.org', 'spam': 0}
print d.items()
8.13.items
8.13.1.items method returns all the items as a list of items in the form of (key, value).
8.13.2.Retrieving dictionary value list