Question: Help please. I keep getting an error when I submit this code. What am I doing wrong? The code is in python. A Personal Fitness

Help please. I keep getting an error when I submit this code. What am I doing wrong? The code is in python.
Help please. I keep getting an error when I submit this code.
What am I doing wrong? The code is in python. A Personal
Fitness Tracker is a wearable device that tracks your physical activity, calories

A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns, and so on. One common physical activity that most of these devices track is the number of steps you take each day. A file named steps.txt 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 1 st, the second line is the number of steps taken on January 2nd, and so forth.) Write a function that takes one argument for the file name and returns the list of average number of steps 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 integer. 1.3.2 Test cases avgstep( nteps, txt") =[5246,4851,5777,5802,4711,4792,5638,5759,6114,5411,426 8. 51381 5. Criterion: P3 The averaged steps for the 1 -th month is wrong! [Failed]

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!