Syntax of String lower()
string_name.lower()
Parameters
The lower() method doesn’t take any parameters.
Returns
Returns a lowercase string of the given string
Python String lower() Method
Python string lower() method converts all letters of a string to lowercase. If no uppercase characters exist, it returns the original string.
Example:
Python3
string = "ConvErT ALL tO LoWErCASe" print (string.lower()) |
Output
convert all to lowercase