You are here : python_2stringstringistitle

string.istitle() - string

             

The method istitle() checks whether all the case-based characters in the string following non-casebased letters are uppercase and all other case-based characters are lowercase.


  • NA


Syntax

str.istitle()


Example

#!/usr/bin/python


str = "This Is String Example...Wow!!!";
print str.istitle()

str = "This is string example....wow!!!";
print str.istitle()


Output / Return Value

When we run above program, it produces following result −


True False


Limitations


Alternatives / See Also


Reference