Home >>Python String Methods >Python String isupper() Method

Python String isupper() Method

Python String isupper() Method

Python String isupper() Method in python returns true if all the characters are uppercase in the string, otherwise returns false if characters are not in uppercase. Only alphabet characters are checked and Numbers, spaces and symbols are not checked by this method.

Syntax:
string.isupper()
Here is an example of Python String isupper() Method:

supper = "HELLO PHPTPOINT!"
z = supper.isupper()
print(z)

Output:
True
Example 2:

supper1 = "WELCOME TO PHPTPOINT"  
supper2 = supper1.isupper()  
print(supper2)  
supper3 = "Welcome To Phptpoint"  
supper4 = supper3.isupper()  
print(supper4)  

Output:
True
False

No Sidebar ads