Question: Python 2. (40 points) Create a file with 20 lines of text and name it lines.txt. Write a program to read this file lines.txt and
2. (40 points) Create a file with 20 lines of text and name it "lines.txt". Write a program to read this file "lines.txt" and write the text to a new file, "numbered _lines.txt", that will also have line numbers at the beginning of each line. Example: Input file: "lines.txt" Line one Line two Expected output file: 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
