Need help


#1

I need some help in course 5. Conditional and control flow. activity 14 "I Got 99 Problems, But a Switch Ain't One. " I don't really understand how to write the proper script my one is not working.
I have checked "hint" still doesn't help. please reply soon as I am doing my GCSEs and this is really important
thank you

this is the program I've done. which doesn't work

def greater_less_equal_5(answer):
if 2 < 5:
return 1
elif 2 > 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

First Python is case sensitive language so try to format it properly so we can see if there is problem with indentation.
By doing this.
1) copy and paste your code
2) highligt/select your whole code
3) then look for this </> and press it.
or
simply press ctrl + shift + c and past the code inside the highlighted area.
Now your code is not working because you only defined 2 as an argument not 4,5 or 6 try to chande it to 2 it should work and only going to give you one answer "1" and thats why you should work with variables.


#3

In order to make your program work simply replace 2 with answer.