Advertisement
# Signature of islower() method
islower()
# Python - Method islower() Example
# Creating a string
s1 = ('scooby dooby doo!')
# Printing the original string
print('Value of string : ', s1)
# Calling the lower() method on string object
print('Calling the islower() method on string : ', s1.islower())
Value of string : scooby dooby doo!
Calling the lower() method on string : True
Advertisement
# Python - Method islower() Example
# Calling islower() method on a string of all lower case characters
print('dennis the menace'.islower())
# Calling islower() method on a string of only digits
print('123'.islower())
# Calling islower() method on a string of digits and lower case characters
print('123.. go!'.islower())
# Calling islower() method on a string of all lower case characters except one lowercase letter
print('I dream of jeannie!'.islower())
# Calling islower() method on a string
print('#1 duck tales, 2# talespin, #3 donald duck.'.islower())
True
False
True
False
True
Advertisement
Advertisement
Please check our latest addition
C#, PYTHON and DJANGO
Advertisement