The islower() method in Python String checks if in the string all the case-based characters (letters) are lowercase. This method is also used for handling strings. Furthermore, the islower() method in Python is supposed to return True when all characters found in the string are lowercase, else, It would return False.
Here is the syntax for islower() method:
This method returns true in case all the cased characters of the string are lowercase and there exists at least one cased character, otherwise, it returns false.
The following example showcases the use of islower() method.
#!/usr/bin/python str = "THIS is string example....wow!!!"; print str.islower() str = "this is string example....wow!!!"; print str.islower()
When the above program is run, it produces the following result:
Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.