#1.get the key of a minimum value from a given dictionary
dict1={"physics":82,"math":65,"history":75}
mini=min(dict1.values())
for i in dict1:
if dict1[i]==mini:
j=i
print(j)
math
#2.check if 200 value is present in the dictionary
dict1={"a":100,"b":200,"c":300}
for i in dict1:
if dict1[i]==200:
x=True
break
else:
x=False
if x==True:
print("200 is present in the dictionary.")
if x==False:
print("200 is not present in the dictionary.")
200 is present in the dictionary.
#3.merging 2 dictionaries into one
dict1={"Ten":10,"Twenty":20,"Thirty":30}
dict2={"Thirty":30,"Forty":40,"Fifty":50}
for i in dict2:
dict1[i]=dict2[i]
print(dict1)
{'Ten': 10, 'Twenty': 20, 'Thirty': 30, 'Forty': 40, 'Fifty': 50}