Answers for "how to iterate through ordereddict in python"

0

how to iterate through ordereddict in python

from collections import OrderedDict

d = OrderedDict()
d['a'] = 1
d['b'] = 2
d['c'] = 3

for key, value in d.items():
    print key, value
Posted by: Guest on May-31-2020

Code answers related to "how to iterate through ordereddict in python"

Python Answers by Framework

Browse Popular Code Answers by Language