Answers for "how to count how many items there is in a dictionary python"

1

Python - Count the Number of Keys in a Python Dictionary

pythonCopydict1 = {'a':1,'b':2,'c':3}
print(len(dict1.keys()))
Posted by: Guest on May-30-2021

Code answers related to "how to count how many items there is in a dictionary python"

Python Answers by Framework

Browse Popular Code Answers by Language