What is a return statement?


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

Not sure what it wants me to do. I thought my last line was the return statement. My code is as follows:

Make sure that the_flying_circus() returns True

def the_flying_circus():
if True and False:
print "Logic gates are broken!" # Start coding here!
print "Do you need two print commands for separate lines?" # Don't forget to indent
# the code inside this block!
elif (8 <= 7) :
print "Your mother was a hampster"
print "Your father smelt of elderberries!"
# You'll want to add the else statement, too!
print "Epic fail"


A return statement is a way for the function to pass an object back to the caller. In your code, construct a single string and return it, rather than print it.


    return "Epic fail"

The only thing is, the SCT is expecting a return value of True. In this case, you could print still, but be sure to return what is expected.