The istitle Method in Python: Checking for Title Case in Strings
Determines if each word in the string starts with an uppercase letter, returning True or False.
istitle()
Returns True if each word in the string starts with an uppercase letter and the remaining characters are lowercase. Otherwise, it returns False.
'S'.istitle() # True
'Some Text'.istitle() # True
'Some text'.istitle() # False
'S1 T2%'.istitle() # True