python how to convert unordered dictionary into ordered dictionary code example Example: get first element of ordereddict list(ordered_dict.items())[0]