PyDocs

Nav

Python Runtime Services

str.isupper

builtins

method of str
  • str.isupper()
Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are
uppercase and there is at least one cased character in the string.
1 Example
>>> 'BANANA'.isupper()
True
>>> 'banana'.isupper()
False
>>> 'baNana'.isupper()
False
>>> ' '.isupper()
False
from the Python docs
See Also
No see-alsos for builtins/str.isupper
0 Notes
No notes for str.isupper