How to Access Values in Dictionaries : Index : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Index »

 

How to Access Values in Dictionaries


dict2 = {'name': 'earth', 'port': 80}

for key in dict2.keys():
     print 'key=%s, value=%s' % (key, dict2[key])



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Dictionary
» Index