Easy Tutorial
❮ Ref Math Log Python Os Makedirs ❯

Python3 islower() Method

Python3 String


Description

The islower() method checks if a string is composed of lowercase letters.

Syntax

The syntax for the islower() method is:

str.islower()

Parameters

Return Value

Returns True if all case-sensitive characters in the string are lowercase and there is at least one case-sensitive character, otherwise returns False.

Example

The following example demonstrates the use of the islower() method:

#!/usr/bin/python3

str = "tutorialpro example....wow!!!"
print (str.islower())

str = "tutorialpro example....wow!!!"
print (str.islower())

The output of the above examples is:

False
True

Python3 String

❮ Ref Math Log Python Os Makedirs ❯