Python String islower() method
Python String islower() method checks if all characters in the string are lowercase. This method returns True if all alphabets in a string are lowercase alphabets. If the string contains at least one uppercase alphabet, it returns False.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
- True: If all the letters in the string are in lower case and
- False: If even one of them is in upper case.
Example 1: Demonstrating the working of islower()
Is geeksforgeeks full lower ? : True Is Geeksforgeeks full lower ? : False
Example 2: Practical Application
This function can be used in many ways and has many practical applications. One such application is checking for lower cases, checking proper nouns, checking for correctness of sentences that requires all lower cases. Demonstrated below is a small example showing the application of islower() method.
Number of proper nouns in this sentence is : 3