Write a program to read a character in Uppercase and print it in lowercase in Python

Python has many methods to convert a character or string entered by the user from uppercase to lowercase. The best way is to use the lower() method.

Example Program to read a character in Uppercase and print it in lowercase in Python

Simple example code Uppercase to Lowercase using lower(). Where input string taking from the user.

print("Enter: ", end="")
text = input()

text = text.lower()
print("Lowercase:", text)

Output:

Program to read a character in Uppercase and print it in lowercase in Python

Do comment if you have any doubts and suggestions on this Python Uppercase-lowercase program.

Note: IDE: PyCharm 2021.1.3 (Community Edition)

Windows 10

Python 3.7

All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.