Python String title() method

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

Syntax

Parameter

NA

Return

This method returns a string where the first character in every word is upper case.

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This