Problem with indentations


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/courses/learn-python/lessons/conditionals--control-flow/exercises/the-big-if

<In what way does your code behave incorrectly? Include ALL error messages.>

File “python”, line 4
print “This should work.”
^
IndentationError: unindent does not match any outer indentation level
<What do you expect to happen instead?>

```python

def the_flying_circus():
if answer(): (8 > 7) and not (8 < 7)
print "This should work."
elif answer(): (7 == 7) or (9 > 100)
print "I hope this works."
else:
print “This is all wrong.”

<do not remove the three backticks above>

#2

You are referencing a function called answer(). Take a look at your if and elif conditional expressions.

If I take your code as is and then properly format it, it look like this:

    if answer(): 
        (8 > 7) and not (8 < 7)
        print "This should work."
    elif answer(): 
        (7 == 7) or (9 > 100)
        print "I hope this works."
    else:
        print "This is all wrong."

Do you see what I mean about answer().


#3

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