Hi,
I basically have a dictionary with a few key value pairs in it.
mydict = {}
mydict['key1'] = 2000
mydict['key2'] = 3000
mydict['key3'] = 6000
I have read that you can check if a particular key is present in a dict with the 'in' statement like:
if 'key1' in mydict:
do something
However, I need to check if a particular value is present in a dictionary. How do I go about doing that?
Thanks,
Adi