Indentation error and syntax error


It gives the IndentationError: expected an indented block

def the_flying_circus():
    if 1+1==2 or 3<1:    # Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif 4==5;
        else "Blank"


First of all that isn't the only problem because your code has no return values for the if/elif/else statements.

But the indentation issue is on this line,

First of all else statements have a colon after the else. else: and should be indented to the same level as the if and elif.


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