Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Ordered Dictionary

import collections    
d1=collections.OrderedDict()    
d1['A']=10    
d1['C']=12    
d1['B']=11    
d1['D']=13    
    
for k,v in d1.items():    
    print (k,v) 

#Output:
A 10
C 12
B 11
D 13
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #Ordered #Dictionary
ADD COMMENT
Topic
Name
3+3 =