DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
can u length a dictionary in python
obj
=
{
0
:
"hello"
,
1
:
"there"
}
for
i
in
range
(
len
(
obj
)
)
:
print
(
obj
[
i
]
)
print
(
len
(
obj
)
)
PREVIOUS
NEXT
Tagged:
#length
#dictionary
#python
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit