mardi 2 août 2016

Why do I keep getting this invalid syntax error? [on hold]

def both_positive(x, y):
"""
Returns True if both x and y are positive.
>>> both_positive(-1, 1)
False
>>> both_positive(1, 1)
True
"""
If x > 0 and y > 0:
    Return True
Else:
     Return False 

What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire