Help with one big if please!


#1



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


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
    
    else: 
        the_flying_circus = True


#2

Hello

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.


#3

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
    else:
        return whatever

#4

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