Help with one big if please!


link: []

the console window says
File "python", line 7
elif True:
IndentationError: expected an indented block

I have tried many things to fix it and checked the forums many times, but found nothing, and I am so sure it should work.

this is my code
# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if not False:
        # Don't forget to indent
    elif True:
        return True
        the_flying_circus = True



In this lesson you must include the following -

if, elif, and else statements;
at least one boolean operator;
a comparator;
Finally, the_flying_circus() must return True when evaluated.

Also look at the Hint in the lesson.

I hope that helps.


With an indentation error, I believe this means your spacing in python is off. It looks ok, however, to me. Maybe play around with it a little or try refreshing. If not maybe try this spacing out in this basic outline:

def the_flying_circus():
    if whatever
        return whatever
    elif whatever
        return whatever
        return whatever


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