Please help :) 15 The Big If , Conditionals & Control Flow

def the_flying_circus():
if 2>1 and 3>2 or True: # Start coding here!
# Don’t forget to indent
# the code inside this block!
print “True”
return True
elif not True and 3==3 or 3!=4 or 3<=3:
# Keep going here.
# You’ll want to add the else statement, too!
print “False”
return True
else:
print True
return True
the_flying_circus()

how is?
not work

1 Like

def the_flying_circus():
if 1 > 2 and 2 > 1:
return True
elif 1 == 1 or not False:
return True
else:
return True

ok this is good ok :smile:

1 Like

Without an Error I can’t tell what’s wrong, try using this instead:

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if (3 < 4) and (5 >= 5):    # Start coding here!
        return True
        # Don't forget to indent
        # the code inside this block!
    elif 1 == 2:
        return False + "How is this possible?"
        # Keep going here.
        # You'll want to add the else statement, too!
    else:
        return "I am here anyways..."
5 Likes

Oops I’m sorry that I’m too late, I was writing :wink: please Click Solved and happy coding :slight_smile:

1 Like

Hi

Error was this

File “python”, line 2
if 2>1 and 3>2 or True: # Start coding here!
^
IndentationError: expected an indented block


def the_flying_circus():
if 2>1 and 3>2 or True: # Start coding here!

Don’t forget to indent

the code inside this block!

print “True”
return True
elif not True and 3==3 or 3!=4 or 3<=3:

Keep going here.

You’ll want to add the else statement, too!

print “False”
return True
else:
print True
return True
the_flying_circus()

1 Like

and this

Oops, try again. An exception was raised while running your code, see the console window for the error message.

1 Like

Indentation probably, very important :wink: If solved, click “Solved” :slight_smile:

1 Like

sralse
Thank you very much for all

:smile:

1 Like

:wink:

Post must be at least 20 characters
Have you tried the button?
:slight_smile:

1 Like

Yep I have tried many times :slight_smile:

1 Like

:wink:

every time , need write , 20 characters

not possible , wink , or smile alone :smile:

1 Like

I know the feels :wink:

1 Like

sralse , you know so good this with coding

:slight_smile:

1 Like

Hahah thanks I guess? Good in what way? :smiley:

with all in coding , you are good

how I see :smile:

1 Like

Hahah thanks, I bet you are too, since I have actually no clue what I’m doing :slight_smile:

I have this problem too… do you know what to do?

hey guys i found an easier way to do this thing, here is how it goes can just copying paste this thing below:

Make sure that the_flying_circus() returns True

def the_flying_circus():
age = 4
if (age > 6) or (age > 10): # Start coding here!
return False
elif (age < 0):
return False
else:
return True

(this part in the brackets is just what i want to say, DO NOT COPY! ok… i actually have no idea what i am doing but it is just to make your lives easier if u don’t wanna do this thing . thats all use this method for an easier way of life and until then, peace!)

1 Like

oh, do not copy the “Make sure that the…” that is in bold
i did not write that
so do not copy that