
islower() method –
islower() method returns True if all characters of a sting is lowercase letters otherwise it returns False.
Syntax –
string.islower()
Example –
In [1]: string1 = 'i love python'
In [2]: string1.islower()
Out[2]: True
In [3]: string2 = 'i love Python'
In [4]: string2.islower()
Out[4]: False
In [5]: string3 = 'i love python3'
In [6]: string3.islower()
Out[6]: True
Related Posts –
- Python String Method – Capitalize()
- Python String Method – title()
- Python String Method – center()
- Python String Method – count()
- Python String Method – startswith()
- Python String Method – endswith()
- Python String Method – find()
- Python String Method – index()
- Python String Method – isalnum()
- Python String Method – isalpha()
- Python String Method – isdecimal()
- Python String Method – isdigit()