String Methods
isupper()
Check whether all cased characters are uppercase.
str.isupper()
Check whether all cased characters are uppercase.
Returns
True when there is at least one cased character and all cased characters are uppercase; otherwise False.
Try it
Run it and change it
text = "HELLO!" print(text.isupper())