How to lowercase the string in Python
In this tutorial, we are going to learn how to lowercase the given string in Python language.
Lowercase a string
To lowercase a string, we can use the built-in string.lower()
method in Python.
Here is an example, that converts the uppercase string PERSON
to a lower case string:
a = "PERSON"
print(a.lower()) # person
Output:
"person"