Question: Complete the A 2 _ Task 3 . py script provided. The script should classify weather stations based on their average annual temperature. Eventually we
Complete the ATaskpy script provided. The script should classify weather stations based on their average annual temperature. Eventually we could modify the script to process several rows of data. For now, a few rows of data represented by lists have been provided as sample input for testing. a Assume the first value in the list is the name of a weather station, the second is a zip code, and the third is the average annual temperature. b Complete the function to accomplish the following: i If the average annual temperature is greater than add the zipcode to the ZoneAZips list. If the temperature is less than or equal to add the zipcode to the ZoneBZips list. ii Also, add the average annual temperature value to a list called temp. c Once all records have been processed, print the results specified: i The number of Zone A Zips ii The number of Zone B Zips iii. The min average annual temperature iv The max average annual temperature
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
