I have 99 problems


#1

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

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

this is what mine looks like and i need help... ive been doing this one for forever. HELP


Lesson 14 - I have 99 problems, but a switch is not a
#2

Use answer instead of an integer to assemble your function.
Example: instead of: 6> 5; Do so: answer> 5

Note that in the statement it says in what sense it is answer to the number 5 " > ", and answer in relation to the return -1 " < ".


#4

And it's as simple as that, thinking outside the box...thanx


#5

Sorry for a noob question, but I still having trouble to figure out what goes into line 4, could anyone help please?


#6

Figure it out, thanks!


#7

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