# Conditionals - The Big If

#1

Here is my code:

def the_flying_circus():
if the_flying_circus() == 1 or the_flying_circus == 0:
print True
elif the_flying_circus() != 1 and the_flying_circus != 0:
print False
else the_flying_circus() < 1 or the_flying_circus > 0:
print True

I might be able to find a way to fix it by the time this is seen and responded to, but if not, and even so, I would like to know why this is wrong. I have worked with some variations of this, always seeming to me to be, functional.

Anyhoo, Thanks for the help!

#2

You can't do a condition check with keyword else, this line:

``else the_flying_circus() < 1 or the_flying_circus > 0:``

should simple be else:

``else:``

if you want another condition, add another elif.

Is this all your code? It feels like there is something missing (where does the_flying_circus ever gets assigned a value?

You call your function inside the function:

``if the_flying_circus() == 1 or the_flying_circus == 0:``

this should simple:

``if the_flying_circus == 1 or the_flying_circus == 0:``

compare it to a variable, don't call the function like that (it will crash)

#3

This is what I have now, I think it is simplified.

def the_flying_circus():
if the_flying_circus() == 1:
return True
elif the_flying_circus() != 1:
return False
elif the_flying_circus() the_flying_circus() < 1 or the_flying_circus() > 1:
else:
print True

I also have been seeing the message "maximum recursion depth exceeded" and have no idea what that means.

Thanks again!

#4

you are calling the function in the function:

``if the_flying_circus() == 1:``

should be:

``if the_flying_circus == 1:``

should compare a variable. not the function, calling the function will cause recursion.