The big if


#1

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


#2

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.


#3

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?


#4

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?


#5

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."
else:
    print "Notice how I have indented every time I use a conditional!"

I hope this helps.


#6

Hi,

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?
Thanks!

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

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

#7

instead of print use return


#8

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
else:
print "Hello"


#9

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


#10

Hey man this worked for me


#11

im brent and my friend jake is still having trouble


#12

nvm he got it lololololol