The Big If - 'the_flying_circus'


#1



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


It behaves correctly, but the exercise won't let me proceed.


# Make sure that the_flying_circus() returns True
def the_flying_circus(i):
    if i==10 and i!=11:    
        return True                                         
    elif i>10:
        return False
    else:
        return 0        

print the_flying_circus(10)


#2

For this particular exercise, we would prefer you not use function parameters.


#3

But to clarify, this function DOES work correctly?

How can I adjust the code to operate as intended?


#4

Simply put, make a function without parameters that meet the guidelines given in the instructions.


#5

I got this one to work and let me go ahead:

Thanks for the advice!


#6

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