The big if


#1



Replace this line with your code.


#2

please post your code here and tell us your problem so we can help you better :slight_smile:

Replace this line with your code.

you have to paste your code here instead of this line


#3

Make sure that the_flying_circus() returns True

def the_flying_circus(answer):
if answer==1: # Start coding here!
return "True" # Don't forget to indent
# the code inside this block!
elif answer>0 and answer>1:
return "True"# Keep going here.
else:# You'll want to add the else statement, too!
return "False"
print the_flying_circus(1)
print the_flying_circus(2)
print the_flying_circus(3)

my code is this.....plss tell me the error .....it is saying the_flying_circus should not take any arguments


#4

you cant take any argument and parameter as the instruction didnt say
remove all the arguments you took.simply just call the function like

print the_flying_circus() # without argument

now don't return True as a string

now you can use direct value instead of variable named answer or set the variable first


#5

hi am ishmael from kenya,
am trying to work on this code and it keeps on displaying this error

SyntaxError: invalid syntax

Make sure that the_flying_circus() returns True

def the_flying_circus():
x = int(raw_input("Enter a number: "))
if x >= 7:
return False:
elif x <= 7 and x<0:
return True:
else:
return True:


#9

Shaba, thank you for your help.

Norman


#11