The Big If, need help


File "python", line 8
elif True and False or True and False:
SyntaxError: invalid syntax

I expected the_flying_circus to return True

Replace this line with your code. 
# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 4 > 3:
        return True
        # Start coding here!
        # Don't forget to indent
        # the code inside this block!
        elif True and False or True and False:
            return False
        # Keep going here.
        # You'll want to add the else statement, too!
                return True


Recommend go back to the lessons explaining the importance of indentation. It's not just to make code look pretty. It is vital to identifying blocks. After your review on the topic, and of functions, you will be able to fix this.


ok thanks big help I am just writing all of this because I have to have 20 characters or more


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