the task is to sort the given dictionary by value in descending order
d={2:1,8:4,5:6,7:4}
after solving,it has to be print like this
d={5:6,7:4,8:4,2:1}
the task is to sort the given dictionary by value in descending order
d={2:1,8:4,5:6,7:4}
after solving,it has to be print like this
d={5:6,7:4,8:4,2:1}