Question: Q3) Reverse.py (20) Write a program that reads each line in a file, and writes in reverse order to another file. For example, if the

 Q3) Reverse.py (20) Write a program that reads each line in

Q3) Reverse.py (20) Write a program that reads each line in a file, and writes in reverse order to another file. For example, if the file input.txt contains the lines Mary had a little 1amb Its fleece was white as snow And everywhere that Mary went The 1amb was sure to go. and you run python Reverse.py input.txt output.txt then output.txt contains lamb little a had Mary snow as white was fleece Its went Mary that everywhere And go. to sure was 1amb The

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!