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
d= {'george':16,'amber':19} dict((v,k) for k,v in d.items()).get(16)
The output is as follows:
-> prints george