How could I pass it ? I need a help ! Thanks!


#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)


#2

Hi you just need to put a condition to your if and elif statement with answer


#3

sorry, I still don't understand:sob:


#4

He means you have to put a condition in these areas:

A condition is the criteria an users input has to fit in order to have a return statement happen. In this case if the user's input fits the if statement(which you have yet to write) then the function will return 1, the corresponding return statement goes for the elif. Now write the criteria for the if elif statement based on the instructions. :slight_smile:


#5

Thank you! I already know how to pass it!


#6

Okay! Welcome! :slight_smile:


#7

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