Write a function that takes in the three attributes of a Simpson character and outputs the gender classification. Test the function with the Comic's attributes. http://ledeprogram.github.io/algorithms/class9/#2


In [2]:
def simpson_classifier(hair_length, weight, age):
    if weight <= 160:
        return "Female"
    else:
        return "Male"

In [ ]: