What is the output of len("Hello")?
-
A
4
-
B
5
Correct answer
-
C
6
-
D
Error
12 views
Explanation
len() returns the number of characters: "Hello" has 5. Source: Standard Python content (FBISE-aligned).
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