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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started