python

Convert all string characters to lowercase in python

To convert all string characters to lowercase you can use python lower() method. This will convert the given string to its lowercase form.

my_str = "Hello World!"
print( my_str.lower() )
#prints - hello world
Was this helpful?