I writing a function on determining how many females and males there are in a large list (200,000+). How do I only count the females in that list?
Right now what I have is a function that just counts the number of words in a list:
genders = [Male, Female, Female, Female, Male, Male, Female, Female] #This is also saying "name 'Female' is not defined"
def gender(genders):
Female = len(genders)
return Female # --> returns 4