The Big If- What's wrong with my code below? It says it's an indentation error


#1

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 4**2 == (8 * 2):                
       print Success
    elif 1 == 1
        print Success again 
    else (10 + 10) > (2 + 5):
        print Triple Success

#2

i think the indention error is cause by the missing colon at the end of your elif statement, that should solve your current issue. If a new issue arise, please try to solve it yourself first, before posting here. If you get stuck again in this exercise, you can post in this topic again, i will help you


#3
return True

Sample if-elif-else

    if something:
        # code
    elif something else:
        # code
    else:
        # no conditional on else

Aside:

When printing text, it must be in quotes.

print "Success"

This is moot, though, since it is not what has been asked for. Just make sure your function returns True.


#4

def the_flying_circus():
if 4**2 == (8 * 2):
print Success
elif 1 == 1:
print Success again
else (10 + 10) > (2 + 5):
print Triple Success

So I corrected the colon, but it says there is a syntax error on line 6


#5

def the_flying_circus():
    if 4**2 == (8 * 2):                
       print "Success"
    elif 1 == 1:
        print "Success again" 
    else (10 + 10) > (2 + 5):
        print "Triple Success"

I fixed the colon, but there is a syntax error on line 7


#6

else can't have a condition, since it is everything else. And you are still not return True, like the exercises asks of you