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


What is wrong with my code?
def greater_less_equal_5(answer):
    if answer>5:
        return 1
    elif answer=-1          
        return -1
        return 0
print greater_less_equal_5(4)
print greater_less_equal_5(5)
print greater_less_equal_5(6)


Did you mean to write,

elif answer < 5:



Wait NVM mtf you are right!!!


Thank you very much :grinning:


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