Apr-15-2019, 08:16 PM
I can't print data: it does not come out in the python file but I think is defined via json after querying the openweather site. In theory the line
cities = ["{} ({})".format(d['name'], d['sys']['country']) for d in data['list']]
should print a list of cities similar to the query typed in the search box, so there are two hits for Vancouver, on in the US and one in Canada. The IDE is also flagging the variable request
in search_location
because it is never used.