how to get key of a particular value in dictionary python using index

mydict = {'george': 16, 'amber': 19}
print(list(mydict.keys())[list(mydict.values()).index(16)])  # Prints george

Here is what the above code is Doing:
1. mydict.keys() returns a list of keys in mydict.
2. mydict.values() returns a list of values in mydict.
3. list(mydict.values()).index(16) returns the index of the value 16 in the list of values.
4. list(mydict.keys())[list(mydict.values()).index(16)] returns the key at the index of the value 16 in the list of values.