Question 1: Gross Domestic Product: The Open Knowledge Foundation maintains a data set containing the gross domestic product (GDP) for each country in the world, which you can find at http://data.okfn.org/data/core/gdp/. Download the JSON version of this data set, and plot the GDP of each country in the world for the most recent year in the data set.
Question 2:. Choose Your Own Data: The World Bank maintains many data sets that are broken down for information on each country worldwide. Go to http:// data.worldbank.org/indicator/ and find a data set
that looks interesting. Click the data set, click the Download Data link, and choose CSV. You’ll receive three CSV files, two of which are labeled Metadata; use the third CSV file. Write a program that generates a dictionary with Pygal’s two-letter country codes as its keys and your chosen data from the file as its values. Plot the data on a Worldmap and style the map as you like.
Question 3:. Testing the country_codes Module: When we wrote the country_codes module, we used print statements to check whether the get_country_code() function worked. Write a proper test for this function using what you learned in Chapter 11.