[Solved] P72 Write Program Reads File Containing Text Read Line Send Output File Preceded Line Numb Q37176620
In python and please include line comments thank you!

P7.2 Write a program that reads a file containing text. Read each line and send it to the output file, preceded by line numbers. If the input file is Mary had a little 1amb Whose fleece was white as snow And everywhere that Mary went, The lamb was sure to go! then the program produces the output file 1Mary had a little 1amb 2Whose fleece was white as snow. 3 And everywhere that Mary went, 4 The lamb was sure to go! Prompt the user for the input and output file names Show transcribed image text P7.2 Write a program that reads a file containing text. Read each line and send it to the output file, preceded by line numbers. If the input file is Mary had a little 1amb Whose fleece was white as snow And everywhere that Mary went, The lamb was sure to go! then the program produces the output file 1Mary had a little 1amb 2Whose fleece was white as snow. 3 And everywhere that Mary went, 4 The lamb was sure to go! Prompt the user for the input and output file names
Expert Answer
Answer to P7.2 Write a program that reads a file containing text. Read each line and send it to the output file, preceded by line … . . .
OR

