Skip to content

Convert a string to lowercase or uppercase

To convert a string to lowercase, you can use the str.lower() method and the str.upper() method to convert to uppercase:

[sc name=”src” url=”https://stackoverflow.com/questions/6797984/how-to-convert-string-to-lowercase-in-python” ]
[sc name=”src” url=”https://stackoverflow.com/questions/9257094/how-to-change-a-string-into-uppercase” ]

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.