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


#1

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
    
else:
    return False

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

Thanks,

Paulo!!

`


#2

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


#3

Hi Rob!

It's work now!

Thanks for reply me


#4

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