Question: Attached Files: input.txt (32 B) outfile.txt (48 B) Please write a python script which will read in the attched file (input.txt) and then write it

Attached Files:

  • input.txt (32 B)
  • outfile.txt (48 B)

Please write a python script which will read in the attched file (input.txt) and then write it back to another file named out.txt adding line numbers to the file.

The attached file outfile.txt is what you file should look like.

input file:

person1

person2

person3

person4

output file:

1). person1

2.) person2

3.) person3

4.) person4

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!