def greater_less_equal_5(answer):

if ________:

return 1

elif ________:

return -1

else:

return 0

print greater_less_equal_5(4)

print greater_less_equal_5(5)

print greater_less_equal_5(6)

def greater_less_equal_5(answer):

if ________:

return 1

elif ________:

return -1

else:

return 0

print greater_less_equal_5(4)

print greater_less_equal_5(5)

print greater_less_equal_5(6)

Hello

We want to check **if** **answer** is **greater** then **5.****Elif** **answer** is **less** then **5**.

Do not forget to use comparators.

Hope that helps, let me know.

Was just stuck on that one.

basically

def greater_less_equal_5(answer):

if answer > 5:

return 1

elif < 5:

return -1

else:

return 0

print greater_less_equal_5(4)

print greater_less_equal_5(5)

print greater_less_equal_5(6)

hope this works

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.