Skip to main content

islower()

The islower() method is a string method in Python that returns True if all alphabetic characters in the string are lowercase, otherwise it returns False.

Parameter Values

This function does not accept any parameters.

Return Values

The islower() method returns a bool, either True or False.

How to Use islower() in Python

Example 1:

The islower() method returns True if all characters in a string are lowercase, otherwise it returns False.

text = 'hello'
print(text.islower()) # Output: True
Example 2:

The islower() method ignores characters that are not alphabetic.

text = 'hello123'
print(text.islower()) # Output: True
Example 3:

The islower() method returns True for an empty string.

text = ''
print(text.islower()) # Output: False