Conditions and Control flow


#1

I can't figure out what 2.14 in conditions and control flow is asking for. I understand how to use if and elif but I guess I don't understand what the code is asking for. I tried putting 6 > 5 for if and 4 < 5 for elif and 5 == 5 for else but it keeps asking for different answers,

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

On line 2, fill in the if statement to check ifยด answer is greater than 5.

Try to type answer (the variable in def :slightly_smiling: )

so the programme can check if the number, given when you call the function, is greater than 5.

in this case, you don't type a number in here, but a variable, which stored the number :smiley:


#3

Thanks so much, it worked.