Home >>Python String Methods >Python String title() Method

Python String title() Method

Python String title() Method

Python string title() method is used to return a string where the first character in every word is upper case. If the given word contains a number or a symbol then the first letter after that will be converted to upper case.

Syntax:
string.title()
Here is an example of Python title() method:

txt = "Hello everyone.. my name is jerry.."
x = txt.title()
print(x)

Output:
Hello Everyone.. My Name Is Jerry..