In this post, I am going to write a very simple Python program to convert an UPPERCASE string to lowercase.
Without wasting our time, let’s write the program now, I am going to use Python 3 syntax for this, so If you are going to use the below script please make sure you are using Python 3:
#get the input string from user
print ("Enter a string in uppercase:")
string = input()
#convert to lowercase
output = string.lower()
#print the output
print ("Lowercase:")
print (output)
Yes, It’s a very simple program as it looks, Python provides a default method called lower(), which can be used to convert the UPPERCASE characters in a string lower case.
I hope this program is helpful for beginners Python programming learners and school / college students.