You are here : python_2stringstringisupper

string.isupper() - string

             

The method isupper() checks whether all the case-based characters (letters) of the string are uppercase.


  • NA


Syntax

str.isupper()


Example

#!/usr/bin/python

str = "THIS IS STRING EXAMPLE....WOW!!!"; 
print str.isupper()

str = "THIS is string example....wow!!!";
print str.isupper()


Output / Return Value

When we run above program, it produces following result −


True False


Limitations


Alternatives / See Also


Reference