I don't know what to do. please help. keeps saying wrong syntax


#1

def greater_less_equal_5(answer):
if > 5:
return 1
elif < 5:
return -1
else:
return 0

it says <,> are wrong syntaxes. what should I do?


#2

This ...

    if > 5:

... and this ...

    elif < 5:

... are invalid. Each comparison needs to have two operands, and you only have specified one for each comparison. You need to compare something specific to 5, namely answer, for example ...

    if answer > 5:

#3

Alrighty!. thank you for the help!


#4