Computer Science, asked by tripathisagar2733, 3 months ago

Write a program to print the maximum, minimum, sum of keys of numbers

dictionary as giving below.

Numbers ={ 1:111,2:222,3:333,4:444}​

Answers

Answered by usjadhav2001
4

Answer:

.

Explanation:

my_dict = {'x':500, 'y':5874, 'z': 560}

key_max = max(my_dict.keys(), key=(lambda k: my_dict[k]))

key_min = min(my_dict.keys(), key=(lambda k: my_dict[k]))

print('Maximum Value: ',my_dict[key_max])

print('Minimum Value: ',my_dict[key_min])

output :

Maximum Value: 5874

Minimum Value: 500

Similar questions