import json

#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
    pop_data = json.load(f)

#print the 2010 population for each country
for pop_dict in pop_data:
    if pop_dict['Year'] == '2010':
        country_name = pop_dict['Country Name']
        population = pop_dict['Value']
        print(country_name + ": " + population)

import json

#load data onto a list
filename = 'population_data.json'
with open(filename) as f:
    pop_data = json.load(f)

#print the 2010 population for each country
for pop_dict in pop_data:
    if pop_dict['Year'] == '2010':
        country_name = pop_dict['Country Name']
        population = int(float(pop_dict['Value']))
        print(country_name + ": " + str(population))

Convert Strings into Numerical Values
Convert Strings into Numerical Values
