islower()
my_str.islower()
Returns True
if all chars in a string are in lower case, otherwise returns False
my_str='_abc45'
print(my_str.islower()) # Output is True
my_str='ab#cd'
print(my_str.islower()) # Output is True
my_str='A_abc1234'
print(my_str.islower()) # Output is False
my_str='pq?rs'
print(my_str.islower()) # Output is True
my_str='pq rs'
print(my_str.islower()) # Output is True
my_str='12ab'
print(my_str.islower()) # Output is True
« All String methods
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com