Function Name:
len(dict_in)
Parameters:
dict_in - The dictionary for which the number of elements present to be counted.
Function overview:
- The len() function returns the number of elements stored in a Python dictionary object.
- For an empty dictionary the len() function returns zero.
Parameters:
dict_in _ a dictionary object for which number of items to be determined.
Example:
# Example Python program that finds the total number
|
Output:
Number of elements: 3 |