The program reads a file containing daily steps and calculates the average steps per month, as well as the highest and lowest step days.
The program provided reads a file containing the number of steps taken each day for a year and calculates the average number of steps for each month. It also finds the highest and lowest step days.
The program uses three functions: read_file() to read the file and return a list of steps, calculate_average() to calculate the average number of steps for each month, and find_highest_lowest_steps() to find the highest and lowest step days.
The main function is display_results() which takes the results from the previous functions and displays them.
The probable question may be:
Explain the logic behind the calculate_average() function. How does it calculate the average number of steps for each month?