Python3 lower() method

Python3 字符串Python3 String


Description

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

Syntax

The syntax of the lower() method is:

str.lower()

Parameters

  • None.

Return Value

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

Example

The following example demonstrates how to use lower():

#!/usr/bin/python3

str = "Example EXAMPLE....WOW!!!"

print( str.lower() )

The output of the above example is as follows:

example example....wow!!!

Python3 字符串Python3 String

Other Extensions