How to lowercase a string in Python
To lowercase a string in python, we can use the lower()
method.
Here is an example that converts uppercase string PERSON
to lower case.
a = "PERSON"
print(a.lower()) # person
To lowercase a string in python, we can use the lower()
method.
Here is an example that converts uppercase string PERSON
to lower case.
a = "PERSON"
print(a.lower()) # person