Big if


#1

Im don't seem to be very good with the and or, and not opporators. I can't seem to figure out why this isn't working.

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if (3 > 4) and (5 >= 5):    # Start coding here!
        print "It's True"
        return True
        # the code inside this block!
    elif (5 >= 4) or (10 == 11):
        print "This is true!."
        return True
        # Keep going here.
        # You'll want to add the else statement, too!
    else (5 == 5) and not (5 > 6):
        print "This is actually True!"
        return True

#2

can you please edit your code in Blockquote format. @olso3rya


#3

in the 2nd and 6th line, the operator should be =>


#4

@aravind_suresh are you sure? in this excercise example operators are exactly like @olso3rya used.

After else you don't place any conditions, just else:
I don't know if your indents are OK (paste your code, select it and use </>) but if they are, then it should work now.


#5

Remember that else means:

if none of the above condition was true, then execute the else block.

So, you don't need to put a condition in the else block.