Vidyalelo
Python · Q3

MCQs for Python Strings: Exam

Programming · Python · question 3

Q3

What does the len() function do when applied to a string?

A.
Returns the length of the string
Answer
B.
Converts the string to lowercase
C.
Converts the string to uppercase
D.
Removes leading whitespace

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board