Question: Write a python program to read a series of names ( 4 or 5 names max ), one per line from standard input ( keyboard),

Write a python program to read a series of names ( 4 or 5 names max ), one per line from standard input ( keyboard), and write out these names spelled in reverse order to standard output, and do the following:

First. Input a series of names that are typed in from the keyboard and write them out, reversed, to a file called txt1

Second. Read the names in from txt1; then write them out, re-reversed, to a file called txt12

Third. Read the names in from txt2, reverse them again, and then sort the resulting list of reversed words and write out these names to standard output.

so basically

to write a python program to read series of names, one per line, from standard input and write these names spelled in reverse order to the standard output. Repeat this exercise using an input file specified by the user txt1 and txt2 instead of the standard input and using an output file specified by the user instead of the standard output

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!