Apr-09-2018, 04:49 PM
Before your loop you should create an empty list, potentially calling it female_ages. Inside your for-loop, you'll want to check the gender, and if it's female, add the age to your list (it looks like you'll probably need to turn that age into an int / float, before adding it to the list). After the loop, you can use the function you asked about on that list you populated.