Big If (indentation error)


I am having trouble understanding what exactly is causing the indentation error. Any ideas?

File "python", line 8
IndentationError: unindent does not match any outer indentation level

def the_flying_circus():
    if 4>2 or 4*2==1:    # Start coding here!
        return True
        # the code inside this block!
    elif 5>2 and 5<6:
        return True
          return True


you posted twice. i said there

so now here

else is not at the same level as the corresponding elif


The previous post was a mistake. It is my first time posting on this forum.

Thank you: it worked. the pre existing Writing on the script some time creates confusion.


i hope now you have understand how to post properly :slight_smile:

Go ahead! happy coding! :slight_smile:


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