I have a Dictionary in Python such as this: dict = {\'a\':1, \'q\':1, \'l\':2, \'m\':1, \'u\':1, \'i\':1}
Is there any way that I can keep the order of this diction
Just use 2 for:
dict = {'a':4, 'q':1, 'l':2, 'm':4, 'p':1} i = max(dict.values())+1 for el in range (i): for letter in dict: if el==dict[letter]: print(letter,dict[letter])