Python islower() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
String

Definition

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()
CallWhat 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 ValueDescription
boolTrue 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())

How It Works

  1. All small letters. "python" is lower case, so the result is True.
  2. One capital is enough. "Python" starts with a capital letter, so it is False.
  3. Digits are ignored. "python 3.12!" still counts, because the digits, dot, and space have no case.
  4. 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)

How It Works

  1. Both agree for words. "abc" and "ABC" give the same answer from both tests.
  2. They differ for digits. "2024" has no letters, so islower() is False.
  3. 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))

How It Works

  1. A filter. The comprehension keeps a word only if word.islower() is True.
  2. Three survive. apple, cherry, and elder are entirely lower case.
  3. 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.

Next: isnumeric()

True if every character is a numeric character, including fractions and superscripts.

isnumeric() tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

13 people found this page helpful