ExamVeda
Login
Home
Python Built In Functions
?

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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.