What does the len() function return?
-
A
Type
-
B
Length
Correct answer
-
C
Value
-
D
Index
14 views
Explanation
len() returns the number of items in a sequence (string, list, tuple, etc.). Source: NBF StudyHub, Chapter 2, Q3.
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