islower() String Method in Python with Examples

islower() method returns True if the string is a lowercase string otherwise it returns False.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

Example 1: islower() String Method


message = 'welcome to python'

if message.islower():
    print('"%s" is lowercase string.' %(message))
else:
    print('"%s" is not lowercase string.' %(message))

Output

"welcome to python" is lowercase string.

Example 2: islower() String Method


message = 'Welcome to Python'

if message.islower():
    print('"%s" is lowercase string.' %(message))
else:
    print('"%s" is not lowercase string.' %(message))

Output

"Welcome to Python" is not lowercase string.


Related String Methods