PLOTTING YOUR TURN #1 x = [] y = [] colors = [] for city in citiesList: x.append(float(city['longitude'])) y.append(float(city['latitude'])) for country in countriesList: if city['country'] == country['country']: if country['EU'] == 'yes': colors.append('blue') else: colors.append('red') plt.xlabel('longitude') plt.ylabel('latitude') plt.scatter(x, y, c=colors) plt.show() PLOTTING YOUR TURN #2 withc = 0 withoutc = 0 for country in countriesList: if country['coastline'] == 'yes': withc += 1 else: withoutc += 1 bars = ['With Coastline', 'Without Coastline'] heights = [withc, withoutc] plt.xticks([0,1], bars) plt.bar([0,1], heights, align='center') plt.show() PLOTTING YOUR TURN #3 numcold = 0 numwarm = 0 numhot = 0 for city in citiesList: if float(city['temperature']) < 8: numcold += 1 elif float(city['temperature']) < 12: numwarm += 1 else: numhot +=1 sizes = [numcold, numwarm, numhot] lbls = ['cold', 'warm', 'hot'] plt.pie(sizes, labels=lbls, autopct='%1.1f%%') plt.show()