Question: Problem Write a program that accepts input from the user. Create another string that contains either a u , l , or - for each

Problem
Write a program that accepts input from the user. Create another string that contains either a u, l, or - for each character of the original string. Use u when the character is uppercase, and use l when the character is lowercase. If the character is neither uppercase or lowercase, use -. Print the second string. Important, do not put a prompt when asking for user input. Just use input(). Adding a prompt will cause your program to not pass the tests.
Expected Output
If the user inputs cat, then the output will be:
cat lll
If the user inputs HouSE, then the output will be:
HouSE ulluu
Code Visualizer
TRY IT
Reminder, do not put a prompt when collecting user input. Just use input()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!