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


#1

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

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


#2

I Don't understand why its not working


#3

I've made the answer say
1
-1
0
None
But it still didn't work


#4

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


#5

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


#8