0 votes
in Python by
How do we convert the string to lowercase?

1 Answer

0 votes
by
lower() function is used to convert string to lowercase.

Example:

1

2

str = 'XYZ'

print(str.lower())

Output:

1

xyz
...