Question: Create the function calculateAvg that has one parameter: states, which is a list of tuples that contain a string representing the two - letter state

Create the function calculateAvg that has one parameter: states, which is a list of tuples that contain a string representing the two-letter state acronym and the yearly average temperature. The function returns the average temperature of all states included in the list. Ignore any formatting to determine a specific number of decimal points (do not worry about this). For example, calculate Avg([(NC,58),(GA,62),(SC,61),(NY,48)]) returns 57.25. Use Python

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 Programming Questions!