The Big if


#1

Make sure that the_flying_circus() returns True

def the_flying_circus():
if Name==Anne:
print "I love you"

the code inside this block!

elif Name==Aisha:
print "Whatsup?"
else:
print "Who are you?"

it shows: Oops, try again. An exception was raised while running your code, see the console window for the error message.

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

where am i wrong?


Replace this line with your code.

link: https://www.codecademy.com/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096


#2

Hi!

If you could post your code properly, that would be great! If you don't know how to do so. Please follow this guide.

And, from what I can gain from looking at your post here, there's most likely a problem with your indentation. Having a properly formatted code would have helped a ton in this situation :slight_smile:


#3

this is the code I made and it works

Make sure that the_flying_circus() returns True

def the_flying_circus():
if 0 <= 1: # Start coding here!
print("fly") # Don't forget to indent
return True# the code inside this block!
elif 0 == 1 or 0 == 3:
print("circus") # Keep going here.
return True# You'll want to add the else statement, too!
else:
return True


#4

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