Python string isupper() method
Check whether all letters are upper case.
Syntax
str.isupper()
islower() is the opposite check.
Parameters
None.
Return value
bool
Example
Code
print("NASA".isupper(), "Nasa".isupper(), "abc".islower())
Output
True False True
Related
Learn it step by step in the free lesson Strings, with exercises that check your answers.