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 ofthese devices track is the number of steps you take each day The steps.txt file 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. Write a program that reads the file, then displays the average number of steps taken for each month Your program should use a function to calculatethe averagenumber of steps. You will need to pass more than one argument to the function.
Python
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 ofthese devices track is the number of steps you take each day
The steps.txt file 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.
Write a
Your program should use a function to calculatethe averagenumber of steps. You will need to pass more than one argument to the function.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images