Don't really Get what its asking me to do?
Judging by the title, the exercise must be about
if-elif-else. What is the question?
Ok then lets take a look at the instructions: Step 1: On line 2, fill in the if statement to check if answer is greater than 5. Your starting code looks like this:
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)
So we are to fill in the blanks to finish the code. What we are to fill in is if answer is greater than 5. Now how are we to do this? Well, if we look at our code, we will notice that answer is the parameter for our function greater_less_equal. The rest becomes simple. We are to check If answer > 5. Hopefully you can solve step 2 with the same premise as step 1!
@mtf sorry about that I started typing a help out about 30 minutes ago but had to go walk the dog so I never finished to post this until now.