Sometimes you may require to convert any string to lowercase (all letters). This tutorial will help to convert a string (any case) to lower case as shown in the below image.

Advertisement

Python string to lowercase

Convert String to Lower Case

In the Python programming language you can use the lower() method to convert any string to lower case. Here is the sample Python code to convert string to lowercase.

Output
hello python

Suggested reading

Some more examples of string conversions in Python.

Share.
Leave A Reply


Exit mobile version