I have a dict as in below:
saving = {0: (1, 2, 9.0), 1: (1, 3, 603.0), 2: (1, 4, 396.0), 3: (1, 5, 9.0), 4: (2, 3, 206.0)}
I want to sort descending this dict order by the third value.
I tried sorted and sort() but I couldn't sort the dict. I don't know much about the usage sort and sorted functions.
Can you help me ?
Thanks.