Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Python by (47.6k points)
edited by

Is there a way to convert a string from uppercase, or even part uppercase to lowercase?

For example, "Kilometers" → "kilometres".

1 Answer

0 votes
by (106k points)
edited by

To lowercase a string in Python you can use .lower()code is as follows:-

s = "Kilometer" print(s.lower())

image

Related questions

0 votes
1 answer
+1 vote
2 answers
0 votes
4 answers
0 votes
1 answer
0 votes
1 answer

Browse Categories

...