Python - String Method - isupper() Tutorial
The isupper() method returns True if all alphabet in the string is upper case. otherwise, it returns False.
Syntax-
String.isupper()
Example-
str1 = "HELLO SAM"
print(str1.isupper())
str2 = "HE!!0 SAM"
print(str2.isupper())
str3 = "he!!o Sam"
print(str3.isupper())
Output-
True
True
False