What am I doing wrong


#1

What am I doing wrong ??


def the_flying_circus():
    if (3 < 4) and (-10 < -20):
        print 
    elif (-4 > 4):
        print
    else:
        return


#2

Hi, @rlemons2 ,

See this requirement in the instructions ...

Finally, the_flying_circus() must return True when evaluated.

What does your function return?

You can find out by adding this line, unindented, at the end of your code ...

print the_flying_circus()

Change your print statements to return statements. Then make sure that the one within the conditional block that will get executed returns True.

A return statement that does not specify a value will return the value, None.


#3

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