Function Details: isupper

Description


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


Extended Description


The isupper() method checks if all the cased characters (letters) in the string are uppercase. It returns True if all cased characters are uppercase and there is at least one cased character, False otherwise. Numbers, symbols, and spaces are not checked.


Read More about isupper from Python Documentation

Function Signature



Module: builtins

Class: str

Parameters



Return


Returns a boolean indicating whether all cased characters in the string are uppercase.


Return Type


bool

Output

Explanation

This example demonstrates the basic usage of isupper(). It returns True because all characters are uppercase.