Write a program that reads a string, then toggles this string (converts all uppercase letters to lowercase letters, and converts all lowercase letters to uppercase letters).
Added by Samuel D.
Step 1
First, we need to read the input string from the user. We can use the input() function to do this. Show more…
Show all steps
Your feedback will help us improve your experience
Madhur L and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a Python program that asks the user for their name and then prints the name out in all uppercase and then in all lowercase letters. The output should look like this: What is your name? Maria Your name in all uppercase letters is: MARIA Your name in all lowercase letters is: maria
Tarandeep S.
Write a MARIE language program to convert a string consisting of all lowercase letters into uppercase letters. Don't forget to null terminate the string. Display the string before it is converted from uppercase to lowercase and display the converted string to the monitor. Copy the MARIE program into a Word document and also include the output of your program.
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD