5.15 - Big If - Code works, but it's wrong


People, help me!
My code works on the "script.py" but the lesson says i'm doing something wrong, but i don't know. Could anyone help me?

def the_flying_circus(x):

if (x == 0) or (0 < x <= 10):
    return True
elif x > 10:
    return True
    return False

print the_flying_circus(10)
print the_flying_circus(20)
print the_flying_circus(-10)





The instructions specifically state that the function takes no arguments, hence the error message..


Hi Rob!

It's work now!

Thanks for reply me


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