got stuff working

This commit is contained in:
gsanders
2025-11-05 09:48:40 -05:00
parent 7ac1d9f10a
commit fc645fa566

View File

@@ -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)