The Big If


#1


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

It doesn't work when it looks like it should

I want it to actually work.


def the_flying_circus():
    if 2 == 2 and 2 == 2:    
        print "Hello Mom"
        
    elif 2 == 2**1: 
        print "Gosh Darnit"    
    
    else:
        print "You Failed"


#2

@uniluckstudios
You are required to use the return statement instead of a print statement...
The Instructions:

the_flying_circus(). It must include:
01. if, elif, and else statements;
02. At least one of and, or, or not;
03. A comparator (==, !=, <, <=, >, or >=);
04. Finally, the_flying_circus() must return True when evaluated.

#3

The task isn't explained very well. The return hasn't been used prior in the course and it is, therefore, difficult to understand what the course expects you to return. The above example works when changed as follows:

def the_flying_circus():
    if 2 == 2 and 2 == 2:    
        return True
        
    elif 2 == 2**1: 
        return "Gosh Darnit"    
    
    else:
        return "You Failed"

#4

it still didn't work after writing return! It came up with:

File "python", line 4
return "ok"
^
IndentationError: unindent does not match any outer indentation level


#5

@inthecode55,
Display the code you are using...