Getting a function to return True


#1



# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 7 != 6:    # Start coding here!
        elephant = 2
        print the_flying_circus()
        # the code inside this block!
    elif 7 <= 6 or False:
        elephant = 3
        # You'll want to add the else statement, too!
    else:
        elephant = 4


#2

i would place this:

print the_flying_circus()

after the function, otherwise you get a maximum recursive depth error message.

Well, if you want to return something i suggest you use the return keyword, and return True:

def example():
   return True

#3

Thanks. It works now.