I have a dictionary like this:
dic = {'Mr A':[1200,1500,1100], 'Mr B':[2200, 3000, 1200]}
and I want to look up a value from the array of values to get keys which satisfy the query.
I tried this,
>>> 1200 in dic.values()
False
I get a match only when I look up the entire array.
>>> [1200,1500,1100] in dic.values()
True
How do I look inside the arrays and get the keys which match the query?
Any thoughts?