Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


The Python String lower() method is used to convert all characters of the string in lowercase. Any symbol, space, or number in the string is ignored while applying this method. Only alphabet are converted.

Syntax

string.lower()

Parameters

No parameter is required.

Return Value

Returns the string with all characters of the specified string in lowercase.

Example:

In the below example, lower() method is used to convert all characters of the string in lowercase.

MyString = "Hello John!"
print(MyString.lower())

The output of the above code will be:

hello john!

❮ Python String Methods