Question: Part C: Write a Python program that: Greets the user with the name entered for Part A . Asks the user to enter a string

Part C:
Write a Python program that:
Greets the user with the name entered for Part A.
Asks the user to enter a string of text (letters, numbers and/or symbols) of at least 20 characters.
Test to make sure the string is at least 20 characters, if not, it should display a message about following instructions and end the program.
If the string is at least 20 characters, ask the user what they want to do with the string and use a Match statement to call the corresponding block of code:
Turn all letters into lowercase
Turn all letters into uppercase
Capitalize the first letter of the string
Check if the string is all digits
Check if the string is all letters
Check if the string is alphanumeric
Split the string by the spaces
Replace a letter in the string with a ^
Display the result from Part 4

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!