The big if


#1


I'm stuck with this exercise, help is much appreciated! Thanks!



Oops, try again. the_flying_circus() returned the value None, did you forget to add a return statement?


To return a True value


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if (8+2==10) or (2*5>=10):
        print True # Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif (10!=10) and (2-1>3):
        print False
        # Keep going here.
        # You'll want to add the else statement, too!
    else: 
        print "N/A"


#2

HI liliany18,

The conditions you gave te statements were right, except instead of print you need to use return.
Like this:

Make sure that the_flying_circus() returns True

def the_flying_circus():
if (8 + 2 == 10) or (2 * 5 >= 10):
return True

elif (10 != 10) and (2 -1 > 3):
    return False 

else:
    return "N/A"

#3

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