Question: Exercise 2 Files Exercise 2 Problem Write a program that reads a comma delimited CSV file with four columns and returns the average of each

Exercise 2
Files Exercise 2
Problem
Write a program that reads a comma delimited CSV file with four columns and returns the average of each column in the file.
Expected Output
The first two lines of your code must look like this:
import sys
testfile =sys.argv[1]
This allows for different text files to be sent to your program for testing. Hint, to open the file use with open(test_file, "r"... The TRY IT button below will send a test file to your program. You should see the following output:
10.08.06.020.0
Exercise 2 Files Exercise 2 Problem Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!