Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started