The big if


#1

I need help!!!!!!!!!!!
I just don't understand how I went wrong, no one can help as well:(
Please send the correct code or explain.
THANK YOU :smile:


#2

Make sure that the_flying_circus() returns True

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

print the_flying_circus()


#3

This was indeed a poorly described practice lesson.


#4

I have to agree. I have been working on this practice lesson for over 20 minutes....I feel quite incompetent at the moment.


#5

Yes, not getting this at all:

Make sure that the_flying_circus() returns True

def the_flying_circus():
if 1 < 2 and 1 > 0:
print "1 = 1"
elif 1 < 0:
print "1 is negative"
else:
print "1 > 1"

As far as I can tell, this looks like the code in the hint box, but the error says this:

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

#6

This worked for me. I had to keep the elif indented the same as the if and else:

Make sure that the_flying_circus() returns True

def the_flying_circus():
monty = 50
if monty > 5 and monty > 20:
# Start coding here!
return True
elif monty < 100:
# Don't forget to indent
return False
# the code inside this block!
else:
return False
# Keep going here.
# You'll want to add the else statement, too!


#7

Change the print statements to return its should work then.