{"id":9471,"date":"2021-01-18T12:19:39","date_gmt":"2021-01-18T17:19:39","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9471"},"modified":"2021-12-04T05:39:59","modified_gmt":"2021-12-04T05:39:59","slug":"convert-string-lowercase-python-examples","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/convert-string-lowercase-python-examples\/","title":{"rendered":"How to Convert a String to Lowercase in Python With Examples"},"content":{"rendered":"\n

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.<\/p>\n\n\n\n

The Python<\/a> programming language provides a handy function lower()<\/strong> that you can use to convert a string value to lowercase. Here is how you can use this feature.<\/p>\n\n\n\n

To use this feature you must have installed Python on your system<\/a>. Windows users can follow these steps here<\/a>.<\/p>\n\n\n\n

Open a Python shell by running the following command in your terminal or cmd.<\/p>\n\n\n\n

$ python<\/code><\/pre>\n\n\n\n

Now run the following code below:<\/p>\n\n\n\n

>>> s = "Hello From Python"\n>>> print(s.lower())\n \nhello from python<\/code><\/pre>\n\n\n\n

There you have it.<\/p>\n\n\n\n

Related:<\/strong><\/p>\n\n\n\n