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



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")
        the_flying_circus = False
        print the_flying_circus

Please Please can somebody help me :worried:.


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


what do you mean - I don't understand


you have to be a bit more specific