Python String lower() Method
Advertisements
Description
The method lower() returns a copy of the string in which all case-based characters have been lowercased.
Syntax
Following is the syntax for lower() method
str.lower()
Parameters
NA
Return Value
This method returns a copy of the string in which all case-based characters have been lowercased.
Example
The following example shows the usage of lower() method.
#!/usr/bin/python str = "THIS IS STRING EXAMPLE....WOW!!!"; print str.lower();
Let us compile and run the above program, this will produce the following result:
this is string example....wow!!!