Python islower function is useful to check whether the given string has at least one character and whether the character is either in lowercase or not. If the character is lowercase, then it returns True. Otherwise, returns False.
In this section, let me show you how to write the Python string islower Function with an example, and the syntax is
String_Value.islower()
- String_Value: Please select a valid literal.
Python islower string function example
The following set of examples helps you understand the islower function. Please refer to the String and its Methods articles in Python to understand them.
Str1 = 'tutorial gateway'; print('First Output = ', Str1.islower()) # Performing on Empty Space Str2 = ' '; print('Second Output For Empty Space is = ', Str2.islower()) # Performing directly on Alphabets Str3 = 'python tutorial at Tutorial Gateway'.islower() print('Third Output = ', Str3) # Performing on both Digits and Alphabets Str4 = '1239abcd'.islower() print('Fourth Output = ', Str4) # Performing on Special Characters Str5 = '!!!@@@'.islower() print('Fifth Output = ', Str5) # Performing on Both Alphabets & Special Characters Str6 = 'abc!!!@@@'.islower() print('Sixth Output = ', Str6)