mydict = {'george':16,'amber':19} res = dict((v,k) for k,v in mydict.items()) print(res[16]) # Prints george print(res.get(16))