Question: Sample Distributions. Go through PlotsHistsofData.py Part 1 and understand the code. The first goal is to load in the data from a text file: bm_results2012.txt.
Sample Distributions. Go through PlotsHistsofData.py Part 1 and understand the code. The first goal is to load in the data from a text file: bm_results2012.txt. You will need this file to be in the same folder as your PlotsHistsofData.py file.
1. How do you pull out just the age data from this type of data structure? Save the age data to a list.
Given Code:

This is the bm_results2012.txt

"Gebremariam Gebregziabher", M, 27, 14,ETH, 142.93 "Matebo Levy", M,22,2,KEN,133.10 "Cherop Sharon", F, 28, 1, KEN, 151.83 "Chebet Wilson", M, 26,5, KEN, 134.93 "Dado Firehiwot", F,28, 4,ETH, 154.93 "Korir Laban", M, 26,6, KEN , 135.48 "Jeptoo Rita", F,31,6, KEN, 155.88 "Korir Wesley", M, 29, 1, KEN, 132.67 "Kipyego Bernard",M, 25, 3, KEN , 133.22 "Barmasai David", M, 23, 8, KEN, 137.27 "Rono Georgina", F, 31, 3, KEN, 153.15 "Getaneh Genet", F,26,9,ETH, 162.18 "Kisorio Mathew", M, 22, 10, KEN, 138.25 "Sigei Diana", F, 24,5, KEN, 155.67 "Sumgong Jemima Jelagat", F, 27,2,KEN,151.87 "Hartmann Jason", M, 31,4,USA, 134.52 "Leonteva Nadezdha", F,27,8, RUS, 160.67 "Butter Michel", M,26,7,NED, 136.63 "Fujita Mayumi", F,28,7, JPN, 159.18 "Reyes Sergio", M,30,12,USA,142.10 "Akor Mary A.", F,35,70,USA, 194.17 "Greenless Tommy",M,29,31,USA, 154.13 "Philbrook Lauren",F, 24, 19,USA, 179.93 "Miller Shannon M." F,27,12,USA,175.78 "Randall Glenn", M,25,49,USA, 157.22 "Manome Aya", F,29,82, JPN, 195.48 "Dionne Hilary K.", F, 26, 11,USA, 171.93 "Krong Jake", M, 27,21,USA, 150.35 "Bedoya David", M,35,19,USA,149.57 "Molyneux Paul M.", M,31,28, GBR, 153. 62 "Kudo Akiko", F,28, 14, JPN , 176.33 "Hensley Matt", M, 24, 18,USA, 149.28 "Herndon Elizabeth", F,26,34,USA, 185.02 "Ray Autumn J.", F, 32,26, USA, 181.68 "Manning Matthew T." , M, 32, 35, USA, 154.90 "Muramatsu Natsuko", F,35, 324, JPN, 209.38 "Wheeler Nicholas",M, 26,27,USA, 153.50 "Warick Jason J." ,M,38,55, CAN , 158.13 "Croft Sheila S." , F, 37, 10,USA, 168.52
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
