ID EN
Built-in Types

isupper

Python 3.11

Return True if all cased characters [4] in the string are uppercase and there is at least one cased character, False otherwise.

Syntax

PYTHON
str.isupper()

Examples

Example 1
PYTHON
>>> 'BANANA'.isupper()
True
>>> 'banana'.isupper()
False
>>> 'baNana'.isupper()
False
>>> ' '.isupper()
False