get key value from ordered dictionary python code example
Example 1: get first element of ordereddict
list(ordered_dict.items())[0]
Example 2: Python Ordered Dictionary
from collections import OrderedDict
# Remembers the order the keys are added!
x = OrderedDict(a=1, b=2, c=3)