I can't believe it, but I've been stumped by what should be a very simple task.
I need to check if a value is in a dictionary as either key or value. I can find keys using if 'A' in dictionary
, however I can't seem to get this to work for values
. I realise I could use a for loop to do this and I may resort to this but I was wondering if there is a built in method for it.