Easy Tutorial
❮ Ref Math Trunc Python Func Exec ❯

Python3 lower() Method

Python3 Strings


Description

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

Syntax

Syntax for the lower() method:

str.lower()

Parameters

Return Value

Returns a string where all uppercase characters have been converted to lowercase.

Example

The following example demonstrates the use of lower():

#!/usr/bin/python3

str = "tutorialpro EXAMPLE....WOW!!!"

print( str.lower() )

The output of the above example is:

tutorialpro example....wow!!!

Python3 Strings

❮ Ref Math Trunc Python Func Exec ❯