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.
[…] Str.title: It returns True if first character in string are upper case and rest are lower case else […]