Vidyalelo
Python · Q15

MCQs for Python Strings: Exam

Programming · Python · question 15

Q15

What is the purpose of the strip() method for strings?

A.
Removes leading and trailing whitespace
Answer
B.
Converts a string to uppercase
C.
Converts a string to lowercase
D.
Adds whitespace to the end

Answer: Option A

Solution

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