python convert string to lowercase

Do you want to know the details regarding “python convert string to lowercase”. If yes, you’re in the correct tutorial.

python convert string to lowercase

str="HELLO"
print(str.lower())

#prints "hello"
startString = "TeST StrIng"
lowerCaseString = startString.lower()
print(lowerCaseString)
# Output -> "test string"
cases in python

Final Thoughts

I hope this tutorial helps you to know about “python convert string to lowercase”. If you have any doubts regarding this article please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment