Q49
Which built-in function is used to capitalize the first letter of a string?
A.
capitalize()
B.
upper()
C.
title()
AnswerD.
first_letter()
Answer: Option C
Solution
Answer: Option C
Solution:
The title() function in Python is used to capitalize the first letter of each word in a string. It returns a copy of the string with the first letter of each word capitalized. This function is particularly useful when you want to capitalize the first letter of each word in a sentence or a string.