Make sure that the_flying_circus() returns True

def the_flying_circus():
if 3==3 or 5!=5: # Start coding here!
return 1
elif 3==3 or 5!=5:
return -1
return 0


you return 1, you should return the Boolean value True


Hi. Thanks for helping. However, it still doesnt work.
Could you pls check if my work is right for the question below:

Write an if statement in the_flying_circus(). It must include:

if, elif, and else statements;
At least one of and, or, or not;
A comparator (==, !=, <, <=, >, or >=);
Finally, the_flying_circus() must return True when evaluated.
Don't forget to include a : after your if statements!

Thank you very much!


i don't need the instructions, can you provide an updated version of your code AND the url of the exercise so i can test your posted code?


hi. here it is

def the_flying_circus():
if 3==3 or 5!=5: # Start coding here!
print "return True"
elif 3==3 and 5!=5:
print "return False"
print "return 0"



there is no indent in your code at all? Return is a keyword, just like print. You should use it instead of print. And True and False are boolean values, so they don't require qouotation marks.

The return keyword should be coverd, and booleans should be covered already in the beginning


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