Inverse dictionary lookup - Python
- by RadiantHex
Hi there,
is there any straight forward way of finding a key by knowing the value within a dictionary?
all I can think of is this:
key = [i for key,value in dict.items() if value=='value' ][0]
Any ideas?