islower() returns True when the string has at least one letter and every letter is lower case. Digits, spaces, and punctuation have no case, so they are ignored: "hello 123!" is lower case.
If the string has no letters at all, such as "123" or "", the answer is False. A single capital letter anywhere makes the result False.
text.islower() is a method of the built-in str type: call it on a string with dot notation. No import is needed, and it never changes the original string.
Syntax
Call it on any string. There are no arguments, but the parentheses are required.
python
ok = text.islower()
Call
What it does
"hello world 3!".islower()
Returns True. Every letter is lower case, and the digit and symbol are ignored.
"Hello".islower()
Returns False. The capital H breaks the rule.
"1234".islower()
Returns False. There is no letter, so there is nothing that is lower case.
The opposite check is isupper(). To convert instead of test, use lower().
Library declarations
python
str.islower() -> bool
# returns: True if there is at least one cased letter and all are lower case
# an empty string returns False
Parameters
This method takes no arguments. It always checks the whole string.
Return Value
Return Value
Description
bool
True if the string has at least one letter and all of its letters are lower case, otherwise False.
Python Examples
Example 1 — Is This Text Lower Case?
Run the check on five strings, including a number and an empty string.
python
for text in ["python", "Python", "python 3.12!", "12345", ""]:
print(repr(text), text.islower())
All small letters."python" is lower case, so the result is True.
One capital is enough."Python" starts with a capital letter, so it is False.
Digits are ignored."python 3.12!" still counts, because the digits, dot, and space have no case.
No letters, no lower case. The number and the empty string both return False.
Example 2 — Two Ways to Ask the Question
See where islower() and a comparison with lower() give different answers.
python
for text in ["abc", "ABC", "2024"]:
same = text == text.lower()
print(text, text.islower(), same)
Output
abc True True
ABC False False
2024 False True
How It Works
Both agree for words."abc" and "ABC" give the same answer from both tests.
They differ for digits."2024" has no letters, so islower() is False.
The comparison is True. Lowering "2024" changes nothing, so text == text.lower() is True.
Example 3 — Keep Only the Lower Case Words
Use the check as a filter inside a list comprehension.
python
tokens = ["apple", "Banana", "cherry", "DATE", "elder"]
small = [word for word in tokens if word.islower()]
print(small)
print(len(tokens) - len(small))
Output
['apple', 'cherry', 'elder']
2
How It Works
A filter. The comprehension keeps a word only if word.islower() is True.
Three survive.apple, cherry, and elder are entirely lower case.
Two are dropped.Banana and DATE contain capitals, so the difference in length is 2.
Frequently Asked Questions
It returns True if the string has at least one letter and every letter is lower case. Digits, spaces, and punctuation are ignored.
False. The string needs at least one letter to count as lower case.
Yes. They have no case, so "abc 123!" is lower case, while "123" has no letters and gives False.
They agree for words, but for text without letters, such as "123", islower() is False while the comparison is True.
Use isupper(), which is True when the string has at least one letter and every letter is upper case.