convert a string into lowercase in Python
How would you convert a string into lowercase?
convert a string into lowercase in Python:-
there is a function named as lower() in Python with the help of this function we can convert atrings into lowercase and there is another function with which we can convert strings into uppercase named as upper() so let’s see an example of it.
Example:-
- x="heLLo woRld"
- print(x.lower())
- print(x.upper())
Please Visit my blog for more basic Questions and Solutions.
Comments
Post a Comment