get key from dict code example
Example 1: python get keys and values from dict
# using dict.items() to
# get key and value
print ("Dict key-value are : ")
for key, value in test_dict.items():
print (key, value)
Example 2: find key by value python
print(list(d.keys())[list(d.values()).index(990)])