The Bid If


Ok so here is my code I have tried a lot of different things. It keeps giving me an error that states "Oops, try again. the_flying_circus should not take any arguments." What does it mean by this and how can I fix it? 

# Make sure that the_flying_circus() returns True
def the_flying_circus(here):
    if here ==8 : 
        print "I am awesome!"
    elif here<7:
        print "I suck"
        print "Balls!" and "stupid"
print the_flying_circus(8)



def the_flying_circus(here):

your function has a parameter. Your function can't have a parameter, the exercise prohibits it.

simply declare here inside the function


Ok so why is it shown like this on 14.I Got 99 Problems, But a Switch Ain't One

def greater_less_equal_5(answer):

and it works fine? is this not an parameter?


answer is a parameter, and normally this would be fine

But this exercise prohibits you from using a parameter. Its somewhere in the information/instructions


It doesn't specify anywhere in the instructions that a parameter or argument isn't allowed/prohibited. The only thing that could possibly be assumed is in the hint, the function has no parameter but from my perspective that isn't a concern I used the past lesson as a reference.
def the_flying_circus():
if condition:
# Do something!
elif condition:
# Do something else!

Also, I tried removing "here" from the code in line 2 and got another error stating

"Traceback (most recent call last):
File "python", line 9, in
TypeError: the_flying_circus() takes no arguments (1 given)"


So i then removed "8" from the () on line 9 then got this error.

Traceback (most recent call last):
File "python", line 9, in
File "python", line 3, in the_flying_circus
NameError: global name 'here' is not defined


i thought it would be mentioned somewhere. Seems not.

Anyway, its not allowed (i dislike this too)

now you need to create the variable here inside the function, otherwise its not defined anywhere


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