The Big If


#1


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

Well I expected it to work I don't know what this error message is as I have never seen this message. Please help lels


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if answer 5 = 5 print FlyingCircus: 
        
        # the code inside this block!
    elif answer 7 = 7: print TheFlyingCircusHehe
        # Keep going here.
    else: print printthis
FlyingCircus = 556666
TheFlyingCircusHehe = 666655
printthis = Finally Done?


#2

@xxserpentsxxyt Make sure that you keep the next line separate from your else statement as it otherwise confuses the function, NEVER keep it like this:

Always keep it like this:

 else: 
        print "HELP"

This same goes for your If and elif statements, first fix that, and then show me your code again.


#3

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