Im currecntly at " 15. The Big If " and i got a ".. returned none" message but don't know how to solve it


#1


https://www.codecademy.com/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096#

as the title says, im stuck at number 15. The Big If because it returns "None" in the upper right "display" and ido have a return statement in the end.

my code looks like this:

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 2**3 == 2**2 * 2 or 3 != 5:
        
        print "Was zum Teufel mache ich hier ueberhaupt ?"
        print "Ist das ueberhaupt real ?"
        print "Sind wir schon inder Matrix ?"
        
           # Start coding here!
           # Don't forget to indent
           # the code inside this block!
                
    elif "False" != "True":
        print "Jup, Matrix confirmed"
        
           # Keep going here.
           # You'll want to add the else statement, too!
                
    else:
        print "2 + 2 != 5"    
        return True

and the error massage like this:
Oops, try again.
the_flying_circus() returned the value None, did you forget to add a return statement?


#2

Well, the purpose of your function is to return True, the only way to this is currently is happening is when if and elif are false, else gets executed, and True is returned. However, if is true:

if 2**3 == 2**2 * 2 or 3 != 5:

gets executed, prints a bunch of lines, but doesn't return True. Make the if condition return True, or change the conditions


#3

thank you very much, i did complete the task with your help :slightly_smiling: