99 problems


#1

def greater_less_equal_5(answer):
if greater_less_equal_5(6):
return 1
elif greater_less_equal_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)
syntax
how do I fix this?


Oops, try again. Your code doesn't look quite right. Check the first exercise if you need help!
#2

We start with the code,

https://www.codecademy.com/courses/python-beginner-BxUFN/3/4

def greater_less_equal_5(answer):
    if
        return 1
    elif    
        return -1
    else:
        return 0

The name of the funciton provides all the information we need. Is answer less than 5, or is it greater than 5. How would you complete the above statement?


#3

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