Description
The Python lower() method converts all uppercase characters in a string to lowercase.
Syntax
lower() method syntax:
str.lower()
Return value
Returns all uppercase characters in the string converted to The generated string after lowercase.
Example
The following example shows how to use lower():
#!/usr/bin/python str = "THIS IS STRING EXAMPLE....WOW!!!"; print str.lower();
The output result of the above example is as follows
this is string example....wow!!!
The above is the detailed content of How to use lower in python. For more information, please follow other related articles on the PHP Chinese website!