Python lower() method
Description
The Python lower() method converts all uppercase characters in a string to lowercase.
Syntax
Syntax of the lower() method:
str.lower()
Parameters
- none.
Return Value
Returns the string generated by converting all uppercase characters in the string to lowercase.
Example
The following example shows how to use lower():
#!/usr/bin/python
str = "THIS IS STRING EXAMPLE....WOW!!!";
print str.lower();
The output of the above example is:
this is string example....wow!!!
Python Strings