Easy Tutorial
❮ Ref Math Hypot Python Factorial ❯

Python3 isupper() Method

Python3 String


Description

The isupper() method checks if all the alphabetic characters in the string are uppercase.

Syntax

The syntax for the isupper() method is:

str.isupper()

Parameters

Return Value

Returns True if at least one cased character is present and all cased characters are uppercase, otherwise returns False.

Example

The following examples demonstrate the isupper() method:

#!/usr/bin/python3

str = "THIS IS STRING EXAMPLE....WOW!!!"
print (str.isupper())

str = "THIS is string example....wow!!!"
print (str.isupper())

The output of the above examples is as follows:

True
False

Python3 String

❮ Ref Math Hypot Python Factorial ❯