What is the istitle() function in Python?
Python has many in-built functions. The istitle() is one of these built-in functions that return True.
If the input string is a title case string and there is at least one character, the function returns False.
For example, uppercase characters can only follow uncased characters, and lower case characters can only follow cased characters.
Syntax
The syntax for istitle() is:
str.istitle()
There are no parameters for this function.
Code
x = "The Tea Ceremony"print(str.istitle(x))y = "the tea ceremony"print(str.istitle(y))