I'm still stuck


#1

I'm still stuck. I have
ef greater_less_equal_5(answer):
if 5<6:
return -1
elif 5>4:
return -1
else:
return 0

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

and this is the response:
Oops, try again. It looks like your function output -1 instead of 0 when answer is 5. Make sure you filled in the if and elif statements correctly!


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

Htry to add a boolean like that in your if statement

def greater_less_equal_5(answer):
    if 5<6 and 5>6:
..........

#3

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

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

Oops, try again. It looks like your function output -1 instead of 0 when answer is 5. Make sure you filled in the if and elif statements correctly!

Looks like I got the same response


#4

Sorry,my fault... but you if you read my first post you will see that I said
you should use the argument answer in your condition like hat

def greater_less_equal_5(answer):
    if 5 < answer:
........

do the same thing to the elif condition