Need help of "The Big If"


#1

Make sure that the_flying_circus() returns True

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

The above is my code, but I don't know how to correct it.
The feedback is
File "python", line 3
if 1==1 and 2>1 # Start coding here!
^
SyntaxError: invalid syntax

Any help will be greatly appreciated!


#2

after the if condition there should be a colon:

if condition:

#3

Sorry, but what does "colon" mean?


#4

its a punctuation mark, you could have simply googled that.


#5

i got stuck too
who can help me
i simply copiy the coding above and add the : things but it doesn't work


#6

oh i got it
elif is totally opposite from if


#7

Hello,
You can use:
print "That's true" or any prints instead of the code you wrote.
Sorry if I am wrong, but I am stuck at The Big If too, at the "Else:" one,
Thanks for spending time reading it.
I hope you a nice day :smiley:


#8

If you need help, please go here, make a new topic so we can help you


#10

You need to indent properly plus add brackets around the statments plus add a colon : at the end of the if statments


#11

def the_flying_circus():

if (1==1) and (2>1): 
    return True 

elif (1!= 1) or (2>3):
    return False 
else:
    return True

print the_flying_circus()

this code works


#12