Answers for "access key through value python"

0

access key through value python

mydict = {'george': 16, 'amber': 19}
print(list(mydict.keys())[list(mydict.values()).index(16)])  # Prints george
Posted by: Guest on September-15-2021

Code answers related to "access key through value python"

Python Answers by Framework

Browse Popular Code Answers by Language