DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to check how many key value pairs are in a dict python
a_dictionary = {"a": 1, "b": 2} dictionary_length = len(a_dictionary) print(dictionary_length)
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#check
#key
#pairs
#dict
#python
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit