I made a function which will look up ages in a Dictionary and show the matching name:
Dictionary
dictionary = {\'george\' : 16, \'amber\' : 19} search_age
If you want to find the key by the value, you can use a dictionary comprehension to create a lookup dictionary and then use that to find the key from the value.
lookup = {value: key for key, value in self.data} lookup[value]