Question: Write a Program in Python that takes a string and prints it in upper case.
Solution:
# Step 1: Take user input
input_string = input("Enter a string: ")
# Step 2: Print upper case value
print(f"Uppercase string: {input_string.upper()}")
Output:
Enter a string: code2care
Uppercase string: CODE2CARE
Notebook Example:
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!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
Thanks for your feedback! If you have time, please provide details by selecting options below.
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!