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

Python islower() method

Python islower() method

Python Strings Python Strings


Description

The Python 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:


#!/usr/bin/python

str = "THIS is string example....wow!!!"; 
print str.islower();

str = "this is string example....wow!!!";
print str.islower();

The output of the above example is:


False
True

Python Strings Python Strings