How to get the key from a given value in a Python dictionary?
For example, if I have:
d = {
'Italy' : ['IT', 'ITA'],
'Austria' : ['AT'],
}
search = 'ITA'
What code is needed if I want this to return Italy. Notice that values can be lists
So if I search for AT, it should return Austria.
IT or ITA should return Italy.
Thanks in advance