The big if


#1

HELLO, good evening ou good day for everybody..

I Was trying to resolve that, but the conclusion is not too nice .. so HERE WE GO:

Make sure that the_flying_circus() returns True

def the_flying_circus():
if (15 > 14) and (6000 == 6000):
print "These are big true"# Start coding here!
# Don't forget to indent
# the code inside this block!
elif (15 / 100 != 0.15):
print "that's a big false!"
# Keep going here.
# You'll want to add the else statement, too!
else:
return True

Oops, try again. the_flying_circus() returned the value None, did you forget to add a return statement?

SOMEONE COUD TELL ME HOW I DID NOT RETURN TRUE ????


#2

Your function's control flow doesn't reach a return statement.

Why? Well, no idea, you posted something different from your code, that won't run at all. Make sure code that you post is intact.


#3

Is it because your first if statement is true? Perhaps the code is happy with the if statement at that point and prints line 3. Maybe try swapping line 3 (print "These are big true") and line 11 (return True)


#4

Make sure that the_flying_circus() returns True

def the_flying_circus():
if (15 > 14) and (6000 == 6000):
print ("These are big true")
# the code inside this block!
elif (15 / 100 != 0.15):
print "that's a big false!"

else:
 return True

That is how i did it and it still didn't work? can someone please help me?


#5

I was having the same problem until I read ionatan from above. That gave me the clue that the the 'if" and elif both need to be false in order for it to reach the return. Seems like a quirk in the lesson more than incorrect code.


#6

Thanks for the help.


#7

it still dose not work, can anyone help?


#8

Thanks for tip, man.


#9

Post your code so we can see what you have


#10

Just need if and elif to be "False", return else with "True".