Python String istittle() method

The string.istittle() method returns a boolean value true if the string is a titlecased string and there is at least one character, for example uppercase characters may only follow uncased characters and lowercase characters only cased ones. Return false otherwise.

Syntax

Parameter

NA

Return

This method returns a Boolean value True if the string is a titlecased string else it returns False.

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This