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

Python3 lower() Method

Python3 lower() Method

Python3 Strings Python3 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/python3

str = "Runoob EXAMPLE....WOW!!!"

print( str.lower() )

The output of the above example is:


runoob example....wow!!!

Python3 Strings Python3 Strings