At this tip of the day, we will show you how to convert a string to lowercase in Python programming language using a practical example.
The Python programming language provides a handy function lower() that you can use to convert a string value to lowercase. Here is how you can use this feature.
Open a Python shell by running the following command in your terminal or cmd.
Now run the following code below:
>>> s = "Hello From Python" >>> print(s.lower()) hello from python
There you have it.