Question: Create a Python program file called Ch 0 6 - 2 _ Name.py . ( Replace Name with your initial of first name and first

Create a Python program file called Ch06-2_Name.py.(Replace Name with your initial of first name and first 5 letters of last name. If your last name is shorter than 5 letters, just use full last name, it doesn't have to be 5 letters. i.e. if your name is John Doe, your file name should be Ch06-2_JDoe.py)
Ask user to enter a string with two "!" within it to mark substring. Then, your program will output letters (including space(s)) surrounded by "!" in reverse order but not including "!".
=================================================
Enter a string with two "!" surrounding portion of the string: This is !A Test! see?
t
s
e
T
A
Do you want to try again? (y/n) y
Please enter a string with a word surrounded by !!: Test !123456! Test.
6
5
4
3
2
1
Do you want to try again? (y/n) n
Thank you for playing.
=================================================

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!