The big if


#1

Hello, I dont really understand what Im doing wrong

def the_flying_circus():
if the_flying_circus() > 5 and the_flying_circus() < 7:
print "True"
return True
elif the_flying_circus() > 7 or the_flying_circus() < 5:
print "False"
return False
else
print "False"
return True

I have an error in line 5


#2

Not sure if this is your main problem but you can't both print and return these values you need to just return instead. So get rid of your print statements and see what happens? If that still doesn't solve your problem reply back with your updated code and the error that it gives and I can paste it into my lesson and play around with it for a minute! :smiley:


#3

I solved it yesterday, but thank you for your time


#4

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