When i put elif and else in my code it says that they are syntax errors...?


#1

No matter what I do it always says the elif and else statements are syntax errors when they are part of the program. They have always worked before so this is very confusing someone plz help.

def the_flying_circus():
    if this is true: (18 >= 12) and (99 != 23)   # Start coding here!
    print "This...is...FACT!!"    # Don't forget to indent
        # the code inside this block!
    elif That might be true:
          print "This may very well be true..."# Keep going here.
        # You'll want to add the else statement, too!
    else:
          print "YOU R WRONG!!!"

#2

i do hope you put serious conditions in your if and elif? Can i see the proper version of your code


#3

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