Question: Solution required in python Task 1 [15 points] Write a program that reads in file exercisestats.txt. The format of the file is that the first
![Solution required in python Task 1 [15 points] Write a program](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39d1ba0bd3_49966f39d1b3816d.jpg)
Solution required in python
Task 1 [15 points] Write a program that reads in file exercisestats.txt. The format of the file is that the first number is the number of exercise items that would follow. Then follow the exercise name and the number of calories burned in the exercise. Sample Input File (exercisestats.txt): 3 Aerobics 450 Badminton 226 Basketball 380 You need to read this file and write some useful information to another file called analysis.txt. The useful information is - Total calories burned - Exercise with the highest calorie burned Sample Output (analysis.txt): Total calories burned: 1056 Exercise item with highest calories burned: Aerobics
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
