How to use the lower() method in Python?
The lower() method is used to convert all uppercase letters in a string to lowercase. It does not have any parameters and can be called directly on the string.
Here is an example of how to use the lower() method:
string = "HELLO WORLD"
print(string.lower())
The output is “hello world”
In the example above, we defined a string as “HELLO WORLD” and called the lower() method to convert all uppercase letters to lowercase letters, then printed the result.