Learning Scientific Programming with Python (2nd edition)

P3.2.3: Annual risk of death statistics

Question P3.2.3

The annual risk of death (given as "1 in N'') for men and women in the UK in 2005 for different age ranges is given in the table below. Use pyplot to plot these data on a single chart.

Age Range Female Male
< 1227177
1 - 453764386
5 - 14104178333
15 - 2441321908
25 - 34 24881215
35 - 441106663
45 - 54421279
55 - 64178112
65 - 746542
75 - 842115
> 8476