get key values from dictionary python code example
Example 1: how to get the value of key in python
print(dict["key"])
Example 2: 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 3: find key by value python
print(list(d.keys())[list(d.values()).index(990)])