Question: Define two Python functions month _ days ( month ) takes an integer argument for the month number ` month ` , returns the number
Define two Python functions
monthdaysmonth takes an integer argument for the month number month returns the number of days for the month.
steptracker
read the step values in days from steps.txt
print the daily average number of steps taken for each month
return the daily average number of steps taken for the year
Call steptracker function in the if namemain statement. Print the daily average for the year.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
