I got 99 problems, but a switch ain't one


#1


https://www.codecademy.com/courses/python-beginner-BxUFN/3/4?curriculum_id=4f89dab3d788890003000096#

Im getting 1,1,1 as a result and the error message it looks like your function output 1 instead of -1
when the answer is 3. Am I missing something.

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

#2

Hi just remove the " " around answer in your if and else statement