Indentation error : expect an indented block


The Big If

Error message

File "python", line 5
elif 2 > 1 or 3 > 2 :
IndentationError: expected an indented block

expected it to be correct? help.

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 5 + 2 == 7 :    # Start coding here!
        #print "It's actually two!"
    elif 2 > 1 or 3 > 2 :
        #print "nope we have a five"
        #print "nothing is amazing at all"


For the fun of it, add a return True line in all three branches.

As for indentation, check for mixed spaces and tabs. Might need to use spaces, only.

Suggest remove all comments (except the first).


I tested the spacing. same problem. Removed all comments, then all comments except the first. Tried only indents and no spaces, tried all spaces. Also what would a return true line look like, and how do I post my code in the comments here.


@mtf this fixed it. :heart_eyes:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.