Convert string to lowercase Python

In this Python string tutorial, you will learn how to convert string to lowercase in Python.

# Create a string
S = "AiHints"

# Convert string into lowercase
L = S.lower()

# Print lowercase
print(L)

Output:

aihints

Free learning resources: AiHintsCodeAllow

Leave a Comment

Your email address will not be published.