What does the 'len' function do?
-
A
Return the length of a list or string
Correct answer
-
B
Calculate logarithm
-
C
Create a new variable
-
D
Convert a value to lowercase
Correct answer
A. Return the length of a list or string
18 views
Explanation
The 'len' function is used to determine the length (number of elements) of a list or the number of characters in a string.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ