Python String islower() Method

Determines whether string contains lowercase characters

Usage

The islower() method return TRUE if all cased characters in the string are lowercase and there is at least one cased character, false otherwise.

Syntax

string.islower()

Examples

Example: Check if all characters in the string are lowercase

S = 'abcd'
x = S.islower()
print(x)	# True

The method returns FALSE, if the string doesn’t contain at least one cased character.

Example:

S = '123$@%'
x = S.islower()
print(x)    # False
S = 'a123$@%'
x = S.islower()
print(x)    # True

The method also returns FALSE, if the string contains at least one uppercase alphabet.

Example:

S = 'abcdE'
x = S.islower()
print(x)    # False