106
Python String islower() Method
Python string islower() method returns True if all characters in the string are in lowercase. It returns False if not in lowercase.
Signature
Parameters
No parameter is required.
Return
It returns either True or False.
Let’s see some examples of islower() method to understand it’s functionalities.
Python String islower() Method Example 1
A simple example to understand how to apply this method. It returns true, see the example below.
Output:
True
Python String islower() Method Example 2
It returns False if any single char found in other case than lowercase. See the example below.
Output:
False
Python String islower() Method Example 3
String can have digits also and this method works in letters case and ignores digits. So it returns True, see the example below.
Output:
True
Next TopicPython Strings