String title() Method Syntax
string.title()
Parameters
- title() doesn’t accept any parameter.
Return
string, converted to title case.
Python String Title method
Python String title() method returns a new string after converting the first letter of every word to uppercase(capital) and keeping the rest of the letters lowercase.
Example: Make string title case
Python3
print ( "usE stRing title Method" .title()) |
Output
Use String Title Method