Question: In python, Write a program that reads a file (prompt user for the input file name) containing two columns of floating-point numbers (Use split ).

In python, Write a program that reads a file (prompt user for the input file name) containing two columns of floating-point numbers (Use split). Print the average of each column. Use the following data forthe input file:5 pts

0.5

0.5

0.5

0.5

The output should be:

The averages are 2.50 and 0.5.

Your code with comments

A screenshot of the execution

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 Databases Questions!