Question: Language is Python You have a file that has text in it. Some of the lines are empty. Create a program that performs the following:

Language is Python
You have a file that has text in it. Some of the lines are empty. Create a program that performs the following: o Opens the file 06.04 EmptyLinesInput.txt file for reading o Opens the file 06.04 EmptyLinesOutput.txt file for writing o Reads a line from the 06.04 EmptyLinesInput.txt file If the line is not empty, write the line to 06.04 EmptyLinesOutput.txt If the line is empty, do not write the line to 06.04 EmptyLinesOutput.txt o Print the number of line read and the number of lines written. Copy, paste and save the file below as 06.04 EmptyLinesInput.txt The quick brown fox jumps over the lazy dog's back Expected 06.04 EmptyLines Output.txt The quick brown fox jumps over the lazy dog's back Expected Output 9 records read 6 records written
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
