Elif


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

I can not do/understand this. pls help


#2

Hi @linux_coader,

Start by telling us, in plain English, don't worry about the code yet, what you would put in each of those _______?


#4

'answer' is some sort of variable im guessing... so I put
answe > 5 and answer < 5

It worked !!!:slight_smile:


#5

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