"the_flying_circus should not take any arguments."


#1

Below is my code:

Make sure that the_flying_circus() returns True

def the_flying_circus(no_of_hours):
if no_of_hours>=50 and no_of_hours!=100:
return True
elif no_of_hours<=50 or no_of_hours==0:
return False
else:
print “Employees need to increase their flying hours”

print the_flying_circus(63)

the program returns as TRUE but I am getting a “the_flying_circus should not take any arguments.” msg.

What am I doing wrong?


#2
def the_flying_circus(no_of_hours):

no_of_hours is an argument, to complete this exercise you function can’t have arguments.


#3

Thanks.

Redid it without the “fancy” parts and it works! :smile:

Make sure that the_flying_circus() returns True

def the_flying_circus():
if 6>3 and 9>6:
return True
elif 6<3 or 9<6:
return False
else:
return 0

print the_flying_circus()


#4

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