can print full set of population values for the year with no errorsarab world caribbean small states east asia pacific (all income levels) --snip-zimbabwe each string was successfully converted to float and then to an integer now that these population values are stored in numerical formatwe can use them to make world population map obtaining two-digit country codes before we can focus on mappingwe need to address one last aspect of the data the mapping tool in pygal expects data in particular formatcountries need to be provided as country codes and populations as values several standardized sets of country codes are frequently used when working with geopolitical datathe codes included in population_data json are three-letter codesbut pygal uses two-letter codes we need way to find the two-digit code from the country name pygal' country codes are stored in module called nshort for internationalization the dictionary countries contains the two-letter country codes as keys and the country names as values to see these codesimport the dictionary from the module and print its keys and valuescountries py from pygal import countries for country_code in sorted(countries keys())print(country_codecountries[country_code]in the for loop we tell python to sort the keys in alphabetical order then we print each country code and the country it' associated withad andorra ae united arab emirates af afghanistan --snip-zw zimbabwe to extract the country code datawe write function that searches through countries and returns the country code we'll write this in separate module called country_codes so we can later import it into visualization programcountry_ codes py from pygal import countries def get_country_code(country_name)"""return the pygal -digit country code for the given country ""downloading data