Write a function that takes in the three attributes of a Simpson character and outputs the gender classification


In [5]:
import pandas as pd
%matplotlib inline
from sklearn import datasets
from pandas.tools.plotting import scatter_matrix
import matplotlib.pyplot as plt

In [6]:
def simpson_clasifier(hair, weight,age):
    if weight <= 160:
        return "Female"
    else:
        return "Male"

In [7]:
simpson_clasifier(8, 290, 38)


Out[7]:
'Male'

In [ ]: