What\'s the shortest way to get first item of OrderedDict in Python 3?
OrderedDict
My best:
list(ordered_dict.items())[0]
Quite lo
First record:
[key for key, value in ordered_dict][0]
Last record:
[key for key, value in ordered_dict][-1]