Python script pass or fail

here is the small script

def result(score):
if score>40:
return "pass"
return "fail"