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?
Similar Posts
- Convert all dictionary keys to lowercase in python
- Python - regex , remove all single characters,replace all single chars,char
- Convert all string values in a list to integers using python
- Loop through string characters in Python
- String characters to list items using python
- Get first N characters from a string in Python
- Split a string into list of characters in Python