Can't get it right and gives me an error no matter what i do


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

print greater_less_equal_5(4)
print greater_less_equal_5(5)
print greater_less_equal_5(6)


Hi @vmtech ,

Because the code that you posted is not formatted, it is difficult for other users to read and debug it. After code has been pasted into the editing window for posting, you can format it by selecting it, and then by clicking the </> button above the editing area. This will enable us to see important details, such as the indentation and underscores.

For this exercise, the greater_less_equal_5 function needs to compare the value of the parameter, answer, to 5. So, instead of ...

if 6 > 5:

you should have ...

if answer > 5:

You also need ...

elif answer < 5:


hi thanks a million for your reply
i got that so i have proceeded ...However now i am stuck somewhere else ahaha