0 votes
1 view
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
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !

Categories

...