Python String istitle() Method

By Lenin Mishra

If you prefer to watch Youtube videos over reading blogs, check out our video on Python strings here.

Python String istitle() method

The istitle() method in Python returns True if all words in the string start with an upper case letter, and the rest of the letters are lower case letters, otherwise False.

Symbols and numbers are ignored.

Syntax of istitle() method
string.istitle()

Returns True or False
Example
s = "Hello, I Am Pylenin"
print(s.istitle())
>>> True

s = "Lenin Mishra"
print(s.istitle())
>>> True

s = "1992 Pylenin"
print(s.istitle())
>>> True

Check out other commonly used Python string methods.

  1. How to create a string in Python?
  2. How to access characters in a Python string?
  3. How to replace characters in a string in Python?
  4. How to concatenate strings in Python?
  5. How to iterate through a string in Python?
  6. Check if a Substring is Present in a Given String in Python
  7. Escape sequences in Python String
  8. Python String Formatting - The Definitive Guide