Dictionary : Dictionary iteritems : Dictionary PYTHON examples


PYTHON examples » Dictionary » Dictionary iteritems »

 

Dictionary


Dictionary: items and iteritems


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

#The iteritems method works in much the same way, but returns an iterator instead of 
#a list.

it = d.iteritems()
print it


           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


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


PYTHON examples

 Navioo Dictionary
» Dictionary iteritems