Python string lower() method
Python String lower() Method
Description
The lower() method returns a copy with all case-sensitive characters converted to lowercase.
Syntax
The following is the syntax of the lower() method −
var.lower()
Parameters
None
Return Value
This method returns a copy with all case-sensitive characters converted to lowercase.
Example
The following example demonstrates the use of the lower() method −
var = "THIS IS STRING EXAMPLE....WOW!!!"
var1 = var.lower()
print ("Original string:", var)
print ("Lowercase version:", var1)
When we run the above program, it will produce the following output −
Original string: THIS IS STRING EXAMPLE....WOW!!!
Lowercase version: this is string example....wow!!!