Answers for "search dictionary python by value"

0

if equal to key return value python

# default param is optional
dict.get(key, default = None)
Posted by: Guest on September-24-2020
-3

find key by value python

print(list(d.keys())[list(d.values()).index(990)])
Posted by: Guest on May-04-2020

Code answers related to "search dictionary python by value"

Python Answers by Framework

Browse Popular Code Answers by Language