# The big if, the flying circus

hi all,

can u please find my problem here?

``````input = raw_input("Pick a number:")
print the_flying_circus(input)

def the_flying_circus(input):
if (input > 6) and (input != 7):
return "True"
elif input == 7:
return	"not 7"
else:
return "try again"

print the_flying_circus(input)
print the_flying_circus(input)
print the_flying_circus(input)
``````

the output i get:
Pick a number: 7
True
None

the error:
Oops, try again. the_flying_circus should not take any arguments.

thank you!!!

This is not a problem any of us wish to solve under the present duress.

im sorry, not got you,
under what?

Hi Tom,

Your codeâ€™s indentation isnâ€™t currently showing up, which makes it so we canâ€™t run the code to find the problem in it. Please read:

ahh ok
its done.

you can see now?

1 Like

Hello, @tom_vaknin!
The last lesson of the fifth section, Conditionals & Control Flow, is to simply create a program with the function given that follows the rules stated there:

1. if, elif, and else statements;
2. At least one of and, or, or not;
3. A comparator (==, !=, <, <=, >, or >=);
4. Finally, the_flying_circus() must return True when evaluated.

Like the error is telling you, there should be no argument for the function the_flying_circus() and youâ€™re doing the opposite.
Thereâ€™s no need to ask for input from the user, simply write the function and call it.

Best regards,
g4be

1 Like

First of all, delete those two out of there. You cant call â€śthe_flying_circusâ€ť, if you havenâ€™t even defined itâ€¦
As for the input, you should be able to input every time, you call the function, so itâ€™s not good as where it is right now

The error tells you, that the function shouldnâ€™t take any arguments, so delete the â€śinputâ€ť from there.

About the number input I talked about before, should be placed around here:

``````def the_flying_circus():
input = raw_input("Pick a number:")
``````

As for the variable, you shouldnâ€™t use input, because there is a built-in function called input(). Better use another name, so you donâ€™t mix things up. Because you want a number (an integer), you should turn the input in an integer too, like int(raw_input("Pick a number: ") or input("Pick a number: "), both work fine.

If you used raw_input() and call the function, you type 3 for example, the â€ś3â€ť will be a string, so it will never be True if you ask 3 == â€ś3â€ť.

1 Like

well,
now im trying to do:

``````def the_flying_circus(answer):
return "True"
return "False"
else :
return "try again"

print the_flying_circus(7)
``````

not work againâ€¦
im little bit lost the way hereâ€¦

@tom_vaknin: Your function the_flying_circus() should not have a parameter.
Parameter that â€śthingâ€ť between the parentheses in your function.

In that exercise youâ€™re not supposed to have a parameter in that function so instead of:

``def the_flying_circus(answer):``

it should be

``def the_flying_circus():``