Python string method lower() returns a copy of the string in which all case-based characters have been lowercased.
Following is the syntax for lower() method −
str.lower()
NA
This method returns a copy of the string in which all case-based characters have been lowercased.
The following example shows the usage of lower() method.
#!/usr/bin/python str = "THIS IS STRING EXAMPLE....WOW!!!"; print str.lower()
When we run above program, it produces following result −
this is string example....wow!!!