Question: Exercise 1 Problem Write a program that reads a text file and returns the number of lines as well as the total number of characters
Exercise
Problem
Write a program that reads a text file and returns the number of lines as well as the
total number of characters in the file.
Expected Output
The first two lines of your code must look like this:
import sys
testfile hysargv
This allows for different text files to be sent to your program for testing. Hint, to
open the file use with opentestfile, The TRY IT button below will
send a test file to your program. You should see the following output:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
