Which Python function converts a string to lowercase?
-
A
lower()
Correct answer
-
B
lowercase()
-
C
toLower()
-
D
casefold()
Correct answer
A. lower()
14 views
Explanation
The lower() method returns a copy of the string with all characters converted to lowercase.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ