From fc645fa566099ad4edbba08d5ac378edfd8e5b09 Mon Sep 17 00:00:00 2001 From: gsanders Date: Wed, 5 Nov 2025 09:48:40 -0500 Subject: [PATCH] got stuff working --- weather/weather.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/weather/weather.py b/weather/weather.py index 75fd2f6..d81f9d7 100644 --- a/weather/weather.py +++ b/weather/weather.py @@ -21,4 +21,16 @@ def print_weather(location=None, metric=False, verbose=False): When metric is True, prints out the weather in metric units. When verbose is True, prints out a more detailed report. """ - print("Not finished...") # YOUR CODE HERE! + # YOUR CODE HERE! + + if location: + coordinates = geocode_location(location) + else: + coordinates = estimate_location() + + + office = get_weather_office(coordinates['lat'], coordinates['lng']) + + + forcast = get_forecast(office['office'], office['x'], office['y'], metric=metric) + print(forcast)