Question: (8 points) Create a NON-RECURSIVE Python function that will accept an integer input representing the number of past days for which an average temperature will

 (8 points) Create a NON-RECURSIVE Python function that will accept an

(8 points) Create a NON-RECURSIVE Python function that will accept an integer input representing the number of past days for which an average temperature will be calculated. The function should prompt the user for that number of days (use a 'for' loop) for which to enter the average temperature. As each day's temperature is entered, the function prints the day's number (1 to n, where n the number of days passed to the function) and the average temperature for that day. The function calculates the average for all days and returns that average to the caller. 5

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!