Answers for "python get dict keys by value"

1

get all keys and values from dictionary python

#python 3
for k,v in dict.items():
    print(k, v)
Posted by: Guest on July-31-2020
2

how to get the value of key in python

print(dict["key"])
Posted by: Guest on May-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language