convert a string into lowercase in Python

 Question:-

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:-

  1. x="heLLo woRld" 
  2. print(x.lower()) 
  3. print(x.upper()) 

Please Visit my blog for more basic Questions and Solutions.

Comments

Popular posts from this blog

Proassignmenthelp index 27

Proassignmenthelp index 28

Programmingshark index 19