'''
    Author: 
    Day 17 Classwork - Problem #3

    The weather.get_all_forecasted_temperatures returns a list of
    forecasted temperatures for each city in the database. Use the
    data to answer the following question:
        What is the average temperature for each city?

    Fill in the blanks to answer the question.
'''

import weather

all_forecasted_temperatures = weather.get_all_forecasted_temperatures()

for ____ in ____:
    city_forecast = ____["forecasts"]
    city_name = ____[____]
    ____ = 0
    ____ = 0
    for temp in ____:
        total = total + temp
        n = n + 1
    average = total/n
    print(city_name, ": ", average)