Question: In python 3, how do I upload a txt file and manipulate it so that the file gives an average, max, and min and how

In python 3, how do I upload a txt file and manipulate it so that the file gives an average, max, and min and how do I add a new column to the txt file? The txt file is below and is called "data" and gives the name, height, and weight. How do I add a new column for BMI which is weight/(height^2) and find the average, max, and min for the columns? The first image is what the txt file gives and the second image is what the python code is suppose to give and look like.

In python 3, how do I upload a txt file and manipulate

it so that the file gives an average, max, and min and

Name Joe Mary Dion Kayla Jose Sofia Erik Sara Height (m) Weight (kg) 72.57 1.82 1.60 63.50 1.90 90.71 1.72 66.31 1.78 70.23 1.63 65 1.98 92.21 1.57 65.77

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!