Search
 
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
Name
7+1 =