Question: Write a Python program that asks the user for a string made of letters. Let's assume that the user is well - behaved and does
Write a Python program that asks the user for a string made of letters.
Let's assume that the user is wellbehaved and does enter a string made of letters.
Your program must then print this string in four different ways:
Your program must print the string as the user entered it lie simply echo the string
Your program must print an "all upper case" version of the string
Your program must print an "all lower case" version of the string
Your program must print a "capitalized" version of the string where only its first letter is in upper case and the rest of the string is in lower case letters
Finally, your program must print the number of times or is found in the original string.
Requirements:
Make sure your program satisfies the Good Programming Style GPS described on our course web site.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
