vendredi 10 juin 2016

Function that has if statement produces nothing when it's called

#4 gender differences
def d_gender(teacher, studio):
    if teacher.gender >= studio.gender :
        1
    else :
        0

d_gender(T1,S1)

Although everything is defined the function doesn't produce anything. What is wrong here?

Aucun commentaire:

Enregistrer un commentaire