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
# Check if all characters in the string are lowercase
S = 'abcd'
x = S.islower()
print(x)
# Prints True
The method returns FALSE, if the string doesn’t contain at least one cased character.
S = '[email protected]%'
x = S.islower()
print(x)
# Prints False
S = '[email protected]%'
x = S.islower()
print(x)
# Prints True
The method also returns FALSE, if the string contains at least one uppercase alphabet.
S = 'abcdE'
x = S.islower()
print(x)
# Prints False