Python Dictionary - len method

len(dict_in)

Method Overview:

The len method returns the number of items stored in a python dictionary object.

Parameters:

dict_in _ a dictionary object for which number of items to be determined.

Example:

>>> dictionaryObject = {'a':1,'b':2,'c':3}

 

>>> len(dictionaryObject)

3

 

>>> 

 


Copyright 2024 © pythontic.com