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

Related questions

0 votes
asked Feb 11, 2020 in Python by rahuljain1
0 votes
asked Feb 6 in Python by SakshiSharma
...