The BIG If can someone give me the answer I have given up, because I don't understand


#1

I dont understand I need the answer


#2
def the_flying_circus():
    if 5 + 5 < 11 and 4 + 4 != 7:
        return True
    elif 5 < 4:
        print "sdhgn"
    else:
        print "ydhfdg"

This is what I did for it. But what did you not understand?


#3
def the_flying_circus():
if 5 == 5 or 6 != 7:    # Start coding here!
    # Don't forget to indent
    # the code inside this block!
elif 6 + 7 <= 13:
    return "Poop" 
    # Keep going here.
else
    return True
    # You'll want to add the else statement, too!

I keep getting this error message but I'm not sure why? My indentations look fine to me?
File "python", line 6
elif 6 + 7 <= 13:
^
IndentationError: expected an indented block


#4

The program was expecting something after the first if You need to put something in there. It is expecting an indent at elif because there is nothing inside the if statement at the start.


#5

What is the diff between return and print


#6

Can't help you with that I'm afraid. I have asked many times and never really understood.


#7

I believe "return" is the value returned from the function (i.e. you could then say
if the_flying_circus() == True:
(some action)

"Print" just prints something to the screen.