The big if


Hi guys
i know people have asked this question about thousands time. But i could not find my self a aweser among these thread. That why i had to creat a thread to ask you guys. i would be apperciate that you guys could help me out with this lession

Thanks in advanced

Make sure that the_flying_circus() returns True

def the_flying_circus(a):
a = raw_input(a number please dumbass)
if a <= 10 : # Start coding here!
# Don't forget to indent
# the code inside this block!
elif a> 10 and a<= 20:
# Keep going here.
# You'll want to add the else statement, too!
else print "stupid this code doenst work "
return True


Well to begin, you have nothing in your if or elif statements, you might want to add some content there, and you do have a return True at the end of your code, but without formatting I cannot know if you have indented or not, therefore I cannot help you...

you are also missing a colon here:

please post your formatted code, and I will be able to assist you.


Help! i dont know what to do, it keep telling me that :
File "python", line 7
elif a> 10 and a<= 20 :
IndentationError: expected an indented block
and ive try other codes and the problem seen to be on that elif, what can i do?


hello gracilus.
i try puting you code on the program (adding a number to a ) but it keep teling me that the:
File "python", line 7
elif a> 10 or a<= 20:
IndentationError: expected an indented block
and i realy dont know what to do, coud you help me?


you need to make sure that you have properly indented your code.

Use this as a guide:

if cat == dog:
    print "What has this world come to..."
elif cat == mouse:
    print "How ironic."
    print "Notice how I have indented every time I use a conditional!"

I hope this helps.



I have tried to keep mine simple and I receive the message: "**heflying_circus() returned the value None, did you forget to add a return statement**_?"
Here's my attempt. Can anyone shed any light on this?

def the_flying_circus():
if 7>2:
print "Correct"

elif 7<2:
    print "Not Right"
    print "Shouldn't Matter"


instead of print use return


Hey can someone help? Why does the below only return 'none' in the console?

def the_flying_circus():
if (3 < 4) and (5 > 3):
return True
elif (3 > 4):
return False
print "Hello"


nickgrimes50 yes it actualy help me a lot , now i see that the spaces cout a lot.
Thx for the guid !:joy:


Hey man this worked for me


im brent and my friend jake is still having trouble


nvm he got it lololololol