str.istitle() Titlecased
Last updated: 2026-09-22
str.istitle() Titlecased
str.istitle() returns True if the string is titlecased.
| Category | String Methods |
|---|---|
| Kind | Built-in Type Method |
| Python Version | all |
📝 Syntax
str.istitle()
Returns:bool. True if the string is titlecased (each word's first letter uppercase).
Mutates the original:No (returns a new object)
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
True
False
💡 Related Cases
More case studies coming soon — check back later.
❓ FAQ
QWhat does 'Hello World'.istitle() return?
ATrue. Every word having its first letter capitalized and the rest lowercase is the titlecase format.
QWhat happens with words containing apostrophes?
AIt may return False. 'Don\'t'.istitle() is False, because the t after the apostrophe is lowercase and is treated as the first letter of a separate word. Be careful with such cases when checking English titles.
QWhat about all-lowercase or empty strings?
ABoth are False. 'hello'.istitle() is False; ''.istitle() is also False because at least one character is required.