Why doesn't my code for the big if work?


#1



https://www.codecademy.com/en/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096#

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

I was expecting my code to work and return true, but it didn't.


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 5 > 1 and 6 > 2:    # Start coding here!
        print ("5 is greater than 1!")
        
    elif 32 != 8 * 3:
        print ("Hello")
        
    else:
        the_flying_circus = False
        print the_flying_circus


Please Please can somebody help me :worried:.


#2

make sure your function call:

print the_flying_circus

is outside of the function, and when you call a function, it should have brackets:

def exampleFunction():
   # function call inside the function
   print exampleFunction()
# function call outside the function
print exampleFunction()

don't run this program! It will crash, it was just to demonstrate the difference between a function call inside or outside a function.

I don't see your program return anything (no return keyword), let alone it returns True


#3

what do you mean - I don't understand


#4

you have to be a bit more specific