DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+8 =
Submit