Big if (unifndent does not match any outer indentation level) problem


#1

this is the code i have, i Think its good
def the_flying_circus():
if 5 > 4 and 10 <= 10: # Start coding here!
print "True" # Don't forget to indent
return True# the code inside this block!
elif 5 < 4 or 10 <= 10:
print "True" # Keep going here.
return True # You'll want to add the else statement, too!
else:
print "False"
return False

but the console shows this:

File "python", line 6
elif 5 < 4 or 10 <= 10:
^
IndentationError: unindent does not match any outer indentation level


#2

Python requires strict indentation.

Indent that line.


#3

and how do you do that?
i'am very new so, i don't know what to do


#4

Press tab before the elif statement. :slight_smile:


#5

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