Program - sort a dictionary


Topic: Program - sort a dictionary

Solution

mydictionary : {1: 1, 7: 2, 4: 2, 3: 1, 8: 1}
sortedDictionary = sorted(mydictionary.keys())



List all Python Programs