sampleDict = { 'Physics': 82, 'Maths': 65, 'history': 75 }
min_value = min(sampleDict.values())
min_keys = [key for key, value in sampleDict.items() if value == min_value]
print(min_keys)
['Maths']
sample_dict = {'a': 100, 'b': 200, 'c': 300}
if 200 in sample_dict.values():
print('200 present in a dict')
else:
print('Not present')
200 present in a dict
dict1 = {'Ten': 10, 'Twenty': 20, 'Thirty': 30}
dict2 = {'Thirty': 30, 'Fourty': 40, 'Fifty': 50}
dict3 = {**dict1, **dict2}
print(dict3)
{'Ten': 10, 'Twenty': 20, 'Thirty': 30, 'Fourty': 40, 'Fifty': 50}