First page Back Continue Last page Overview Graphics

Creating the Datasets

We want to use the firstnames and the heights.

Write a program which creates a dictionary with the firstname and a dictionary with the heights. The sex should be used as keys:

{'female': ['Stephanie', 'Cynthia', ...], 'male': ['Randy', 'Jessie', 'David', 'Stephen', 'Jerry', ...]}

{'female': array([149, 174, 183, 138,...]), 'male': array([184, 175, 187, 192, ...])}