Sorted dictionary : Sort : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Sort »

 

Sorted dictionary


dict2 = {'A':'1''B':'2' }
for eachKey in sorted(dict2):
     print 'dict2 key', eachKey, 'has value',



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Dictionary
» Sort