Can anyone help me?


#1



That's my code for "The big if"
It said that there is a mistake "Oops, try again. the_flying_circus() returned the value None, did you forget to add a return statement?"
How to add a return statement?
Can anyone help me? Thanks a lot


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


#2

Ok. I got the solution by myself.
I should write return True instead of print "xxx"


#3

yes

return True or False


#4

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