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


I dont understand I need the answer

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

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

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.
    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


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.


What is the diff between return and print


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


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.