Indentation error : expect an indented block


#1



The Big If
https://www.codecademy.com/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096#


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"
    else: 
        #print "nothing is amazing at all"


#2

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


#3

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.


#4

@mtf this fixed it. :heart_eyes:


#5

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