items method returns all the items as a list of items in the form of (key, value). : Items : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Items »

 

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()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Dictionary
» Items