YouTip LogoYouTip

Python3 String Istitle

# Python3.x Python3 istitle() Method [![Image 3: Python3 Strings](#) Python3 Strings](#) * * * ## Description The `istitle()` method checks whether all words in the string have their first letter capitalized and the rest of the letters are lowercase. ## Syntax The syntax for the `istitle()` method is: str.istitle() ## Parameters * None. ## Return Value Returns `True` if all words in the string have their first letter capitalized and the rest of the letters are lowercase, otherwise returns `False`. ## Example The following example demonstrates the use of the `istitle()` method: ## Example #!/usr/bin/python3 str = "This Is String Example...Wow!!!"print(str.istitle())str = "This is string example....wow!!!"print(str.istitle()) The output of the above example is: TrueFalse * * Python3 Strings](#)
← Python3 String MaxPython3 String Isnumeric β†’