Search code snippets, questions, articles...

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

Search Index Data (The code snippet can also be found with below search text)

tolowercase python
lower() method python
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet