Python String islower() Method Tutorial

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

What is String islower() Method in Python?

The Python string islower() method is used to see if the entire characters of a string value is lowercase.

Note that this method checks the entire characters and even if only one character of that string is not lowercase, then the result of this method will be false. Otherwise the value true will return.

Python String islower() Method Syntax:

string.islower()

String islower() Method Parameter

The method does not take an argument.

String islower() Method Return Value

The return value of this method is of boolean type. The value true will return if the entire characters of the target string are lowercase. Otherwise, the value false will return instead.

Example: using python string islower() method

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

result = s1.islower()

print(result)

Output:

False

Here because only the first character of the string value is an uppercase letter, then the final result of calling this method is False.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies