Converts all characters in a string to lowercase
Usage
The lower()
method returns a copy of the string with all the characters converted to lowercase. This method does not change the original string.
Syntax
string.lower()
Examples
# Convert all characters to lowercase
S = 'Hello, World!'
x = S.lower()
print(x)
# Prints hello, world!
lower()
method ignores numbers and special characters in a string.
S = '123 ABC $@%'
x = S.lower()
print(x)
# Prints 123 abc $@%