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

Python lower() method

Python lower() method

Python Strings Python Strings


Description

The Python lower() method converts all uppercase characters in a string to lowercase.

Syntax

Syntax of the lower() method:


str.lower()

Parameters

Return Value

Returns the string generated by converting all uppercase characters in the string to lowercase.

Example

The following example shows how to use lower():


#!/usr/bin/python

str = "THIS IS STRING EXAMPLE....WOW!!!";

print str.lower();

The output of the above example is:


this is string example....wow!!!

Python Strings Python Strings