Sorting a Dictionary in Python
How to sort a dictionary in Python
Published in
4 min readNov 29, 2020
Introduction
We can sort lists, tuples, strings, and other iterable objects in python since they are all ordered objects. Well, as of python 3.7, dictionaries remember the order of items inserted as well. Thus we are also able to sort dictionaries using python’s built-in sorted() function. Just like with other…