Site icon i2tutorials

Isupper() method in Python String Module

Isupper() method in Python String Module


Isupper method in string module returns the output as TRUE if the string has all the characters in upper case or else it return the output as FALSE.


Syntax:

str.isupper()


Example-1:

text = "HIMALAYAS"
x = text.isupper()
print(x)


Output:


Example-2:

text = "Mount Everest"
x = text.isupper()
print(x)


Output:

Exit mobile version