Question: i have posted this for the second time!!!Do it only if u kmow it File: Main main function from import from import APIVal = >


File: Main main function from import from import APIVal = > for index print("API value Days", index+1) APIVal = int(input) #call functions aveAPI= print("Average API readings in Kuantan for 2 weeks: ", round 2)) (APIVal) File: calculateAve Function no. 1 averageAPI (valueAPI): total = 0 for index in range total = total + average = total/14 return File: APIDay Function no. 2 def dayAPIC for APIDay in range(len(valAPI): if valAPI >=151 and valAPI print("Day", APIDay +1," alert: Unhealthy air detected! Limit prolonged outdoor activities") elif valAPI >=201: print("Day",APIDay+1," waarning: Very unhealthy air detected! Limit outdoor activities")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
