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


#1

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


#2

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:


#3

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..."

#4

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


#5

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()


#6

and this

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


#7

Indentation probably, very important :wink: If solved, click "Solved" :smile:


#8

sralse
Thank you very much for all

:smile:


#9

:wink:

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


#10

Yep I have tried many times :smile:


#11

:wink:

every time , need write , 20 characters

not possible , wink , or smile alone :smile:


#12

I know the feels :wink: ....


#13

sralse , you know so good this with coding

:smile:


#14

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


#15

with all in coding , you are good

how I see :smile:


#16

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


#17

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


#18

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!)


#19

oh, do not copy the "Make sure that the......." that is in bold
i did not write that
so do not copy that