14/15 help me plzzz

#1
if 6 > 5:
return 1
elif 4 < 5:
return -1
else:
return 0

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

#2

You haven't actually mentioned the problem. From what I can see here is that you have not used indentation, and also what does "List itemdef" mean?

#3

@objectblaster14221 I was also confused, and also I typed a lot of math operations, then I read again and I found that ANSWER has a grey background .... so they use as a variable.

The right code is below:

``````def greater_less_equal_5(answer):
return 1
return -1
else:
return 0``````

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

#4

what the 1 and -1 about

#5

and also how do we know wat the answer is? l

#6

About the values 1,-1 and 0 on the returns

This valules should be printed acordding the value of the variable inside on the print print greater_less_equal_5(n) where n can be any value, in exercise this value are (4), (5) and (6) so the code works like this:

If the variable has the value `greater_less_equal_5(4)` It will match with this operation `elif answer < 5:` and return the -1 value

If the variable has the value `greater_less_equal_5(5)` It will match with this operation `else:` and return the 0 value

If the variable has the value `greater_less_equal_5(6)` It will match with this operation `elif answer < 5::` and return the 1 value