Answers for "print the keys in a dict"

10

print key of dictionary python

for key, value in mydic.items() :
    print (key, value)
Posted by: Guest on June-03-2020
0

print specific key in dictionary python

>>> print(fruit.get('cherry', 99))
99
Posted by: Guest on June-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language