The Big If


I’m stuck at Learning Python > Conditionals and Control Flows > The Big If 15/15

I keep getting an error message about Line 11 indentation in my code below. What am I doing wrong?
File “python”, line 11
IndentationError: unexpected indent

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 2 > 1:    # Start coding here!
        return True 
        # Don't forget to indent
        # the code inside this block!
    elif 2 == 2 or 0:
        return True
        # Keep going here.
        # You'll want to add the else statement, too!
      	return True
print the_flying_circus()


I pasted into Notepad and resolved the indentation issue and copied it back over. Very strange.


If you check the indentation on the else you will see that it is two tabs instead of eight spaces. That creates a mismatch.


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