Please help, beginner ques


#1

hi

im not found my problem:

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 try to do:\

def greater_less_equal_5(answer):
if 10/10 > 5:
return 1
elif 10/10 < 5:
return -1
else:
return 0

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

what is the numbers 4 5 6 up here?

thank you all


#2

Hi first iniside your if and else if statement you should put answer = , <, > whatever number you like.. like this

def greater_less_equal_5(answer):
    if answer > 5:
        return 1
    elif answer < 5 :          
        return -1
    else:
        return 0

and the print greater_less_equal_5(4) the number inside... in this case 4 will replace answer in the if and else statement .


#3

thnak you!!

well, now i stock in next step:

def the_flying_circus(answer):
if answer > 6:
return 1
elif answer < 6:
return -1
else:
return 0

	print the_flying_circus(7)
	print the_flying_circus(7)
	print the_flying_circus(7)

whats wrong here?