Skip to main content

str.title()

str.title()

Make the first letter in each word upper case.

Returns:
The string with first letter of each word capitalized.
Return Type:
String

txt = "I love baby pandas" 
txt.title()

"I Love Baby Pandas"


Problems or suggestions about this page? Fill out our feedback form.