Definition
The isupper() method returns True
if all the characters are in upper case, otherwise False
. Only alphabet characters are checked.
Syntax
string.isupper()
Parameters
No Parameters.
Examples:
testStr = "WELCOME TO THE PYTHON TUTORIALS!"
result = testStr.isupper()
print(result)
# another example
testStr = "Hello World!"
result = testStr.isupper()
print(result)