Question: Question: Write a python script that will read in the attached file (input.txt), swap the two columns, and print them back out. See attached outfile.txt
Question: Write a python script that will read in the attached file (input.txt), swap the two columns, and print them back out. See attached outfile.txt for an example.
(input.txt) First,Last Bill,Logger Hannah,Flowers Bob,Cratchet Chris,Craft Tom,Thumb Fred,Bird Stephen,Stone Ashley,Stone
(outfile.txt) (Expected Answer) Last,First Logger,Bill Flowers,Hannah Cratchet,Bob Craft,Chris Thumb,Tom Bird,Fred Stone,Stephen Stone,Ashley
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
