The 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/python3 str = "THIS IS STRING EXAMPLE....WOW!!!" print (str.lower())
When we run above program, it produces the following result −
this is string example....wow!!!