in Python by
Q:
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 Dec 22, 2019 in Python by rajeshsharma
0 votes
asked May 17, 2020 in Python by SakshiSharma
0 votes
asked Jan 10, 2021 in Python by rajeshsharma
0 votes
asked Feb 11, 2021 in Python by SakshiSharma
...