Jeudi 26 septembre

parent 5179cc12
import requests
r = requests.get('')
contenu = r.json()
print("Temperature ressentie :",contenu['current_condition'][0]['FeelsLikeC'])
# ordonnees =[]
# for prevision in contenu['weather'][1]['hourly']:
# ordonnees.append(int(prevision['tempC'])
ordonnees = [int(prevision['tempC']) for prevision in contenu['weather'][1]['hourly']]
abscisses = list(range(0,24,3))
import plotly.graph_objects as go
fig = go.Figure(data = go.Scatter(x = abscisses, y = ordonnees))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment