68.3k views
1 vote
Write a Python program to convert the characters to lowercase in a string

User Yarg
by
5.8k points

1 Answer

5 votes

Answer:

Following is the program in the python language

st = 'sAN RaN' #String

print(st.lower()) #display into the lowercase

Output:

san ran

Step-by-step explanation:

Following are the description of program

  • Declared and initialized the string in the "st" variable .
  • The lower function in python is used for converting the uppercase string into the lower case string .
  • Finally in the print function we used lower function and display the string into the lower case
User Liewl
by
5.8k points