python get dict keys by value code example
Example 1: how to get the value of key in python
print(dict["key"])
Example 2: get all keys and values from dictionary python
#python 3
for k,v in dict.items():
print(k, v)
print(dict["key"])
#python 3
for k,v in dict.items():
print(k, v)