Run
my_dict = { 'apple': 10, 'banana': 20, 'cherry':30 } value = 40 if value in list(my_dict.values()): print("The value is PRESENT in the dictionary.") else: print("The value is NOT PRESENT in the dictionary.")
Output