Python String islower() Method

Example

Check if all characters in the text are lowercase:

txt = "hello world!"
x = txt.islower()
print(x)

Run Instance

Definition and Usage

If all characters are lowercase, the islower() method returns True, otherwise it returns False.

Does not check numbers, symbols, and spaces, only checks letter characters.

Syntax

string.islower()

Parameter Value

No parameters.

More Examples

Example

Check if all characters in the text are lowercase:

a = "Hello world!"
b = "hello 123"
c = "mynameisPeter"
print(a.islower())
print(b.islower())
print(c.islower())

Run Instance