write a program that print the maximum and minimum value in dictionary in python
Answers
Answered by
3
Answer:
my_dict = {'x':500, 'y':5874, 'z': 560}
4 key_min = min(my_dict.keys(), key=(lambda k: my_dict[k]))
5
6 print('Maximum Value: ',my_dict[key_max])
7 print('Minimum Value: ',my_dict[key_min
Similar questions