Python String Method – islower()

Spread the love

islower() method –

islower() method returns True if all characters of a sting is lowercase letters otherwise it returns False.

Syntax –

string.islower()

Example –

In [1]: string1 = 'i love python'

In [2]: string1.islower()
Out[2]: True

In [3]: string2 = 'i love Python'

In [4]: string2.islower()
Out[4]: False

In [5]: string3 = 'i love python3'

In [6]: string3.islower()
Out[6]: True

Related Posts –

  1. Python String Method – Capitalize()
  2. Python String Method – title()
  3. Python String Method – center()
  4. Python String Method – count()
  5. Python String Method – startswith()
  6. Python String Method – endswith()
  7. Python String Method – find()
  8. Python String Method – index()
  9. Python String Method – isalnum()
  10. Python String Method – isalpha()
  11. Python String Method – isdecimal()
  12. Python String Method – isdigit()

Leave a Reply