15 The Big If - Bug?


#1

how do we code this ?? like honestly??


#2

IMG


#3

you forgot indentation for else: , also your code for else is incorrect , syntax of else is else: ( no expression )


#4

what do you mean?i tried inditation and it didnt work how did i express it?


#5

and it says the error is in elif


#6

i think it should have instruction ; inside if and elif

 def the_flying_circus():
        if 2==2:
            return True
        elif 3==3:
            return True
        else:
            return none

#7

Must use one boolin operator but when i put one in i get syntax error


#8

Fixed it thanks IMG


#9

i don't understand this can anyone help me please this is my code

Make sure that the_flying_circus() returns True

def the_flying_circus():
if 2==2:
return True
elif 3==3:
return True
else:
return none


#10

Hi you should put at least ine booleans

example of booleans

3 == 3 and 25 < 26

#11

i dont actually understad this though


#12

you shoud put al least one booleans inside your if or elif condition

if (condition) : 
   #do sometiong
elif (condition):
    #do something
else:
    #do something

#13

ok but how would i right it


#14

booleans could be..

10 == 5 + 5 and 5 == 5

10 < 5 or 50 == 25 * 2

def the_flying_circus():
    if 2==2 and 5 == 25:
.....

#15

thnx and is it ok if u couild write it for me
:grin:


#16

def the_flying_circus():
    if 2==2 and 5 == 25 :
        return True
    elif 3==3:
        return True
    else:
        return none

#17

thank you now lokkin at yours and mine i c my mistakes


#18

Your the best saved 40 mins of my life thank you