44: Take a string and print it in lower case. [1000+ Python Programs]


Question: Write a Python Program to take a string and print it in lower case.


Solution:

# Step 1: Take user input
input_string = input("Enter a string: ")

# Step 2: Print lower case value
print(f"Lowercase string: {input_string.lower()}")
Output:

Enter a string: Code2Care
Lowercase string: code2care


Notebook Example:

Notebook Demo - LowerCase Python

These Python programs are created by experienced programmers to aid students in learning Python. We are here to make your learning experience as interactive and informative as possible. If you have questions or need more clarification, feel free to ask. Happy coding!

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!