Copyright © tutorialspoint.com
This method checks whether all the case-based characters (letters) of the string are lowercase
str.islower() |
Here is the detail of parameters:
NA
It return true if all cased characters in the string are lowercase and there is at least one cased character, false otherwise
#!/usr/bin/python str = "THIS is string example....wow!!!"; print str.islower(); str = "this is string example....wow!!!"; print str.islower(); |
This will produce following result:
False True |
Copyright © tutorialspoint.com