Sometimes, we want to make a string lowercase in Python.
In this article, we’ll look at how to make a string lowercase in Python.
How to make a string lowercase in Python?
To make a string lowercase in Python, we can use the string lower
method.
For instance, we write
s = "FooBar".lower()
to return a string with the letters in "FooBar"
converted to lower case with lower
.
Conclusion
To make a string lowercase in Python, we can use the string lower
method.