Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ordereddict initialization

# An OD is represented by a list of tuples, so would this work?
d = OrderedDict([('b', 2), ('a', 1)])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #ordereddict #initialization
ADD COMMENT
Topic
Name
5+2 =