Bif if error


#1



# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 2<3 or 2==3:    # Start coding here!
        print "True"
        # the code inside this block!
    elif 2>3:
        print "False"
        # You'll want to add the else statement, too!
        else:
            print "the_flying_circus()"
            return the_flying_circus()


#2

you want your else to be at the same indent level as if and elif

I would put something else inside your else, for example return True (True should be returned, step 4 of the instructions:
Finally, the_flying_circus() must return True when evaluated

Then i would put the function call outside the function:

def the_flying_circus():
    if 2<3 or 2==3:    # Start coding here!
        print "True"
        # the code inside this block!
    elif 2>3:
        print "False"
        # You'll want to add the else statement, too!
    else:
        # else is now properly indented
        # i would return True here

#now the function call:
print the_flying_circus()

See comments in code


#3

Hi
There are several problems in your code, see the comments in the code below


#4

you were faster than me :slight_smile:


#5

It is alright, now he has two views on how to solve the problem :slight_smile: