Python String isupper() Method Tutorial

In this section, we will learn what String isupper() method is and how to use it in Python.

What is String isupper() Method in Python?

The Python string isupper() method is used to see if the entire characters of a string value are uppercase letters.

This method will return true only if the entire characters are uppercase letters! This means even if one of them is a lowercase letter, then the return value of this method will be false.

Python String isupper() Method Syntax:

string.isupper()

String isupper() Method Parameter

The method does not take an argument.

String isupper() Method Return Value

The return value of this method is of type boolean and it will be true if the entire elements of the target string value are uppercase letters. Otherwise, the value false will return instead.

Example: using python string isupper() method

s1 = "They know we know that they know we know!"

result = s1.isupper()

print(result)

Output :

False

Leave a Reply