Python String lower() Method

The Python string lower() method converts each character of the subject string to their corresponding lowercase characters. The lower() method converts the Unicode characters in the string while the lower() method works on the ASCII character.


Return Value:

The lower case version of the subject string.

The following example converts the string Captain AMERICA into lower case and results in output as captain america


# Python example of the lower() method, 
txt ='Captain AMERICA'
x = txt.lower()<br />


captain america

Here, we can see that, in the output of the lower() method, all of the ASCII characters in the original string have been replaced without their lowercase forms.