Computer Science, asked by krishna81376, 12 hours ago

Write a program to print 2 to 10 in reverse order?​

Answers

Answered by swadhine08
0

Explanation:

Explanation

dict.values() gives list of all the values in the dictionary.

sorted() method will sort the list of dict_values.

list(sorted(dict.values()))[-2] converts dict_values to list and return the second last element of the sorted list, i.e. the second largest value of dictionary.

Similar questions