Jun-22-2020, 10:52 PM
if json_data['main']['temp'] >= 110 and json_data['main']['temp'] <= 119: weather['bg'] = 'burgundy' elif json_data['main']['temp'] >=100 and json_data['main']['temp'] <= 109: weather['bg'] = 'brown' elif json_data['main']['temp'] >= 90 and json_data['main']['temp'] <=99: weather['bg'] = 'red' elif json_data['main']['temp'] >= 80 and json_data['main']['temp'] <=89: weather['bg'] = 'orange' else: weather['bg'] = 'pink'
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags