I Got 99 Problems, But a Switch Ain't One


This is my code
def greater_less_equal_5(answer):
if answer<5:
return 1
elif answer > 5:
return -1
return 0

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


I Don't understand why its not working


I've made the answer say
But it still didn't work


No need to answer me I tried something again and it worked which is weird cause I've done it before


2 posts were split to a new topic: I got 99 problems