Conditionals and Control Flow: Else


I'm so lost here. Any help would be appreciated.

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

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


Instead of using a number greater or less than 5, use the parameter... answer.


pls help me i gt the same error


compare the parameter answer with number 5 like this
answer >5


Hey thanks for posting! I was stuck also after trying to get creative.


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