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
for name in mydict: if mydict[name] == search_age: print(name) #or do something else with it. #if in a function append to a temporary list, #then after the loop return the list