Indentation error and syntax error


#1


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

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"


#2

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.


#3

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