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
Physics,
4 months ago
Computer Science,
4 months ago
Science,
4 months ago
Math,
8 months ago
Social Sciences,
8 months ago
English,
11 months ago
Science,
11 months ago
Social Sciences,
11 months ago