Python String istitle()

The syntax of istitle() method is:

string.istitle()

istitle() Parameters

The istitle() method doesn't take any parameters.


Return Value from istitle()

The istitle() method returns:

  • True if the string is a titlecased string
  • False if the string is not a titlecased string or an empty string

Example 1: Working of istitle()

Output

True
False
True
True
False

Example 2: How to use istitle()?

Output

Titlecased String
Not a Titlecased String