Python Programming - Data Types - Discussion

Discussion Forum : Data Types - General Questions (Q.No. 30)
30.
What is the purpose of the len() function?
To calculate the logarithm
To find the length of a string or list
To generate random numbers
To perform mathematical operations
Answer: Option
Explanation:
The len() function is used to determine the number of elements in a string, list, or any other iterable object.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.