Question: Program 2 : reverse.py Write a program that takes in a line of text as input, and outputs that line of text in reverse. The

Program 2:
reverse.py
Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Quit", "quit", or "q" for the line of text. Hints: Individual characters of a string can be accessed like elements in a list. The range function can create a countdown sequence if given a negative step.
Example Output
Please Enter Your string: The quick brown fox jumps over the lazy dog
Reversed: god yzal eht revo spmuj xof nworb kciuq ehT
Please Enter Your string: quit
Skills Covered
Creating while loops
Creating for loops
Using range() function
 Program 2: reverse.py Write a program that takes in a line

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 Databases Questions!