Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python3 islower() Method

Python3 islower() Method

Python3 Strings Python3 Strings


Description

The islower() method checks whether a string consists of lowercase letters.

Syntax

Syntax of the islower() method:


str.islower()

Parameters

Return Value

Returns True if the string contains at least one cased character and all such cased characters are lowercase, otherwise False

Example

The following example demonstrates the islower() method:

Example

#!/usr/bin/python3

str

=

"RUNOOB example....wow!!!"

print

(

str

.

islower

(

)

)

str

=

"runoob example....wow!!!"

print

(

str

.

islower

(

)

)

The output of the above example is:


False
True

Python3 Strings Python3 Strings