?
Which built-in function is used to capitalize the first letter of a string?
Answer & Solution
Correct Answer:
Option
C
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.
Join the Discussion
Login to post a comment or share your explanation.
Login