Big If (indentation error)


#1

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

File "python", line 8
else:
^
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
       else:
          return True

#2

you posted twice. i said there

so now here

else is not at the same level as the corresponding elif


#3

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.


#4

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

Go ahead! happy coding! :slight_smile:


#5

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