I want solution for this im stuck here


#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

Hello

We want to check if answer is greater then 5.
Elif answer is less then 5.
Do not forget to use comparators.

Hope that helps, let me know.


#3

already I tried that but I am getting error.


#4

Was just stuck on that one.
basically
def greater_less_equal_5(answer):
if answer > 5:
return 1
elif < 5:
return -1
else:
return 0

print greater_less_equal_5(4)
print greater_less_equal_5(5)
print greater_less_equal_5(6)
hope this works


#5

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