PyDocs

Nav

Python Runtime Services

str.istitle

builtins

method of str
  • str.istitle()
Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only
follow uncased characters and lowercase characters only cased ones.
1 Example
>>> 'Spam, Spam, Spam'.istitle()
True
>>> 'spam, spam, spam'.istitle()
False
>>> 'SPAM, SPAM, SPAM'.istitle()
False
from the Python docs
See Also
No see-alsos for builtins/str.istitle
0 Notes
No notes for str.istitle