IF only I could get this to work!


#1



The Big IF


Constantly getting syntax errors. No idea how to structure this. Wheres a good place to practice booleans and comparators and all that in this section.


def the_flying_circus():
    if 10>5 and 5<20:
                print"Monty Python"
                return True
elif 20==20 not 20=25
                    print "Flying Circus"
                     return True
elif 30>25
    print "holy grail
        return True


#2

You are close, but the embellishments are not asked for, nor expected by the lesson checker.

Your structure does not need to include the second elif. Remove the print statements and leave the return statements. Clean up your indentations and all will be well.

In the event a final else: is needed, just return True.


#3

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