Question: Write a Python snippet that asks the user over and over again to Enter a sentence: (exactly as shown) and accepts a sentence as input.
Write a Python snippet that asks the user over and over again to "Enter a sentence:" (exactly as shown) and accepts a sentence as input. If the sentence is not empty, print the sentence after making all characters in it capitalized; otherwise, print "End" and quit. You will use a while loop here and accept sentences until the user enters an empty string as the sentence (hit Enter after prompt). Hint: you will want to use the upper() function to convert the sentence to all upper case.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
