generated from mwc/lab_weather
made it so just the temperature shows
This commit is contained in:
0
weather/weather
Normal file
0
weather/weather
Normal file
@@ -32,5 +32,10 @@ def print_weather(location=None, metric=False, verbose=False):
|
||||
office = get_weather_office(coordinates['lat'], coordinates['lng'])
|
||||
|
||||
|
||||
forcast = get_forecast(office['office'], office['x'], office['y'], metric=metric)
|
||||
print(forcast)
|
||||
forecast = get_forecast(office['office'], office['x'], office['y'], metric=metric)
|
||||
|
||||
|
||||
for day in forecast:
|
||||
display= day['name']+ ' temperature will be ' + str(day['temperature']) + ' degrees'
|
||||
print(display)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user