Python string islower() method
Example
Check if all characters in the text are lowercase:
txt = "hello world!" x = txt.islower() print(x)
Definition and usage
If all characters are lowercase, the islower() method returns True, otherwise it returns False.
Do not check numbers, symbols and spaces, only check letter characters.
Syntax
string.islower()
Parameter value
No parameters.
More examples
Example
Check if all characters in the text are lowercase:
a = "Hello world!" b = "hello 123" c = "mynameisPeter" print(a.islower()) print(b.islower()) print(c.islower())