Python - String islower() Method


Advertisements

The string islower() method is used to check whether all characters of the string are in lowercase or not. It returns true when all characters of the string are in lowercase, else returns false. Any symbol, space or number in the string is ignored while applying this method. Only Alphabet are checked.

Syntax


string.islower()

Parameters

No parameter is required.

Example:

In the below example, islower() method checks whether all characters of the given string are in lowercase or not. It only checks alphabet. Any symbol, space, or number in the string is ignored while applying islower() method.

MyString = "Hello John"
print(MyString.islower())

MyString = "hello john"
print(MyString.islower())

MyString = "@hello world"
print(MyString.islower())

Output

False    

True   

True 

String Methods
Advertisements