Python String istitle() Method

Returns True if the string is considered a title. A title is where all words begin with an uppercase letter and the rest of the characters in the word are lowercase. Symbols and numbers are ignored.

Syntax

Python
string.istitle()

Example

Python
print('Great Python Reference'.istitle())
print('Not so great Python Reference'.istitle())

Output

True
False