arab world caribbean small states east asia pacific (all income levels) --snip-zimbabwe not all of the data we captured includes exact country namesbut this is good start now we need to convert the data into format pygal can work with converting strings into numerical values every key and value in population_data json is stored as string to work with the population datawe need to convert the population strings to numerical values we do this using the int(functionworld_ population py --snip-for pop_dict in pop_dataif pop_dict['year'=' 'country_name pop_dict['country name' population int(pop_dict['value'] print(country_name "str(population)now we've stored each population value in numerical format at when we print the population valuewe need to convert it to string at howeverthis change results in an error for some valuesas shown herearab world caribbean small states east asia pacific (all income levels) --snip-traceback (most recent call last)file "print_populations py"line in population int(pop_dict['value'] valueerrorinvalid literal for int(with base ' it' often the case that raw data isn' formatted consistentlyso we come across errors lot here the error occurs because python can' directly turn string that contains decimal' 'into an integer (this decimal value is probably the result of interpolation for years when specific population count was not made we address this error by converting the string to float and then converting that float to an integerworld_ population py --snip-for pop_dict in pop_dataif pop_dict['year'=' 'country pop_dict['country name'population int(float(pop_dict['value'])print(country "str(population)