Function Details: istitle

Description


Return True if the string is a titlecased string and there is at least one character, False otherwise.


Extended Description


The istitle() method checks if the string follows the rules of title case. In title case, every word starts with an uppercase letter, and the remaining letters are lowercase. Words are considered to be separated by any characters that are not letters. The method returns True if the string is in title case and contains at least one character, False otherwise.


Read More about istitle from Python Documentation

Function Signature



Module: builtins

Class: str

Parameters



Return


Returns a boolean indicating whether the string is in title case.


Return Type


bool

Output

Explanation

This example demonstrates the basic usage of istitle(). It returns True because each word starts with an uppercase letter and the rest are lowercase.