Question: Help please. The code needs to be in python. A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart
A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns, and so on. One common plysical activity that most of these devices track is the number of stepe you take each day. A file named steps.bxt contains the number of steps a person has taken each day for a year. There are 365 lines in the file, and each line contains the number of steps taken during a day. (The first line is the number of steps taken on January 15t, the. second line is the number of steps taken on January 2nd, and so forthi) Write a function that takes one argument for the file name and returns the list of average number of ateps taken for each month. 1.3.1 Note The data is from a year that was not a leap year, so February has 28 days. For the averaged steps in each month, it should be rounded down to an intoger: 1.3.2 Test cases avgstep("8tepo.txt") =(5246,4851,5777,5802,4711,4792,5630,5759,6114,5411,426 9. 51381
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
