[Solved] Python sort multi dimensional dict
First, you should avoid using reserved words (such as input) as variables (now input is redefined and no longer calls the function input()). Also, a dictionary cannot be sorted. If you don’t need the keys, you can transform the dictionary into a list, and then sort it. The code would be like this: input_dict = … Read more