Python islower() method
Description
The Python islower() method checks whether a string consists of lowercase letters.
Syntax
Syntax of the islower() method:
str.islower()
Parameters
- none.
Return Value
Returns True if the string contains at least one cased character and all such cased characters are lowercase, otherwise False
Example
The following example demonstrates the islower() method:
#!/usr/bin/python
str = "THIS is string example....wow!!!";
print str.islower();
str = "this is string example....wow!!!";
print str.islower();
The output of the above example is:
False
True
Python Strings