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
You can get key by using dict.keys(), dict.values() and list.index() methods, see code samples below:
names_dict = {'george':16,'amber':19} search_age = int(raw_input("Provide age")) key = names_dict.keys()[names_dict.values().index(search_age)]