Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python - Count the Number of Keys in a Python Dictionary

pythonCopydict1 = {'a':1,'b':2,'c':3}
print(len(dict1.keys()))
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Python #Count #Number #Keys #Python #Dictionary
ADD COMMENT
Topic
Name
8+6 =