Python islower () method
description
Are Python islower () method to detect the string consists of lowercase letters.
grammar
islower () method syntax:
str.islower()
parameter
- no.
return value
If the string contains at least one of alphanumeric characters, and all of these (case-sensitive) characters are lowercase, returns True, otherwise False
Examples
The following example shows islower () instance method:
#!/usr/bin/python str = "THIS is string example....wow!!!"; print str.islower(); str = "this is string example....wow!!!"; print str.islower();
Examples of the above output results are as follows:
False True