Apr-18-2019, 07:49 PM
That shows the available dictionary keys of which 'list' is not one of them.
Output:dict_keys(['coord', 'weather', 'base', 'main', 'visibility', 'wind', 'rain', 'clouds', 'dt', 'sys', 'id', 'name', 'cod'])
there are dictionaries in the dictionary but they don't have 'list' as a key either.Output:{'base': 'stations',
'clouds': {'all': 40},
'cod': 200,
'coord': {'lat': 45.63, 'lon': -122.67},
'dt': 1555614246,
'id': 5814616,
'main': {'humidity': 55,
'pressure': 1023,
'temp': 292.03,
'temp_max': 294.26,
'temp_min': 289.15},
'name': 'Vancouver',
'rain': {'1h': 0.25},
'sys': {'country': 'US',
'id': 5321,
'message': 0.0088,
'sunrise': 1555593581,
'sunset': 1555642796,
'type': 1},
'visibility': 16093,
'weather': [{'description': 'light rain',
'icon': '10d',
'id': 500,
'main': 'Rain'}],
'wind': {'deg': 360, 'speed': 1.5}}