I have a dictionary that looks like this
`{'a':2,'b':3,'c':2}`
I need to print the keys and values starting with the biggest value. Desired output below:
'b' 3
'a' 2
'c' 2
The order of 'a' and 'c' does not necessarily have to be alphabetical, the important thing is that the largest value is printed first and so on.
I'm writing in python 3.
I have tried to create a new dictionary using the old values as keys and vice versa, but the issue was that I had the same values several times.
Can someone help a confused student solve this question?