Answers for "get key using value in dictionary python"

0

get a value from a dictionary python

#!/usr/bin/python

dict = {'Name': 'Zabra', 'Age': 7}
print "Value : %s" %  dict.get('Age')
print "Value : %s" %  dict.get('Education', "Never")
Posted by: Guest on November-30-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 "get key using value in dictionary python"

Python Answers by Framework

Browse Popular Code Answers by Language