The big if exercise


#1

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 5>=3  :
    
    # Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif 5<3 :
    print 'bye'
    else  :
    print 'hy'
        # Keep going here.
        # You'll want to add the else statement, too!...

this is my coding....plz gv me the correct one..plz


#2
def the_flying_circus():
    if 5 + 5 < 11 and 4 + 4 != 7:
        return True
    elif 5 < 4:
        print "sdhgn"
    else:
        print "ydhfdg"

Did you indent it at all?

EDIT: By the looks of your edited code you haven't indented after the elif: and else:


#3

Easier to read and see errors when code samples are posted correctly.


#5

Bruce,

You are a relly wiseman, your code saved me. It was driving me nuts.

Thanky you