Â
In this we are going to see a basic program to get the maximum and minimum value in a dictionary in Python Programming Language.
dict1 = {1:45,2:30,3:20,4:10,5:50}
print("Dictionary : ",dict1)
print("-----------------------------------------------------")
print("Maximum value in the dictionary is : ",max(dict1.values()))
print("-----------------------------------------------------")
print("Minimum value in the dictionary is : ",min(dict1.values()))
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP