Question: IN PYTHON Q.4. (20 points) Create a file with 20 lines of text and name it lines.txt. Write a program to read this file and
IN PYTHON
Q.4. (20 points) Create a file with 20 lines of text and name it "lines.txt". Write a program to read this file and write the text to a new file called numbered lines.txt" that will also have the line numbers at the beginning of each line. For example: Input file. lines.txt" Line one Line two Expected output file: 1 Line one 2 Line two
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
