The Big If, the_flying_circus should not take any arguments


#1



I don't understand what an argument is or how to fix my code.


The console reads: True and then None, like I believe it probably should. But after I pressed Save & Submit, CodeAcademy is telling me "Oops, try again. the_flying_circus should not take any arguments." Wtf is that? How do I fix it?


To be done so I can move on.


# Make sure that the_flying_circus() returns True
def the_flying_circus(year):
    if year == 2016:
        return True and not False or True
    elif year < 2016:
        return 3 != 3
    else:
        return "Not Yet"
    
print the_flying_circus(2016)


#2

In your code above year is an argument.

Any letter or word passed in between a function's parentheses is an argument,

def example(argument):
    if argument > 10:
        return "Argument is Greater than 10"
    else:
        return 0

#3

def the_flying_circus():

if 2**3 >= 6 and 10 != 2 :
    return True



elif 4 > 5 or 5 == 5 :
    return False

else:
    return True

#4

Are you receiving any error with your code now?


#5

Thank you, I fixed it. I changed (year) to () and then made a variable. I appreciate the help.


#6

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