Categories
Python Answers

How to make a string lowercase in Python?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *