The istitle() method is used to check whether all characters of the string is in title format or not. It returns true when all characters of the string is in title format, else returns false. A title format means first character of each word in uppercase and rest of all characters in lower case.
MyString = "Hello World!" print(MyString.istitle()) MyString = "HelloWorld" print(MyString.istitle())
True #for "Hello World!" False #for "HelloWorld"