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


Warning: Unknown: open(/var/lib/php/session/sess_clqjmi9hgp7hobejsempqhv666, O_RDWR) failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0