Str.istitle will return True when first element of given string is upper case and rest are lower case otherwise false.

First letter must be uppercase after comma, space for output to be true as show below.

As we can see in below images when first character is in upper case then it returns true for string b, and in string a all character are in lower case that why output is false.

how to write str.istitle
Str.istitle

 

By SC

One thought on “Str.istitle”

Leave a Reply

Your email address will not be published. Required fields are marked *