islower() Function in Python – Check for lowercase

islower() Function in python checks whether the string consists of lowercase only.lets see an example of python islower() Function

 

Syntax for islower() Function in Python:

str.islower()

Returns true if only lower cases are found else returns false.

 

Example of islower() Function in python:

str1 = "2018 is at doorstep"; 
print str1.islower()

str1="Beauty of DEMOCRACY"
print str1.islower()

so the output will be

True
False

 

previous islower() Function in python                                                                                                                next islower() Function in python