Exercise 1.2.3

Change the script you wrote for Exercise 1.2.1 to make use of the csv module to calculate the average GDP per capita per country in Europe in 1962, its median and standard deviation using gapminder.csv data; and compare these figures with those from Americas.

Print the solution as follows:

Europe:
Average: 8365.4868143
Median: 7515.7337375
Standard deviation: 4199.193906418378
America:
Average: 4901.5418704
Median: 4086.114078
Standard deviation: 3421.740568771563