The len() function returns:
-
A
The first element
-
B
The length
Correct answer
-
C
The last element
-
D
The type
Correct answer
B. The length
11 views
Explanation
len() returns the number of items in a sequence, such as a list or string.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ