C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Python String islower() MethodPython string islower() method returns True if all characters in the string are in lowercase. It returns False if not in lowercase. Signatureislower() ParametersNo parameter is required. ReturnIt returns either True or False. Let's see some examples of islower() method to understand it's functionalities. Python String islower() Method Example 1A simple example to understand how to apply this method. It returns true, see the example below. # Python islower() method example # Variable declaration str = "TheDeveloperBlog" # Calling function str2 = str.islower() # Displaying result print(str2) Output: True Python String islower() Method Example 2It returns False if any single char found in other case than lowercase. See the example below. # Python islower() method example # Variable declaration str = "Welcome To JavaTpoint" # Calling function str2 = str.islower() # Displaying result print(str2) Output: False Python String islower() Method Example 3String can have digits also and this method works in letters case and ignores digits. So it returns True, see the example below. # Python islower() method example # Variable declaration str = "hi, my contact is 9856******" # Calling function str2 = str.islower() # Displaying result print(str2) Output: True
Next TopicPython Strings
|