Which method is used to convert a string to lowercase in Python?
-
A
upper()
-
B
capitalize()
-
C
lower()
Correct answer
-
D
swapcase()
Correct answer
C. lower()
17 views
Explanation
The lower() method converts all characters in a string to lowercase.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ