Need help of "The Big If"


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


after the if condition there should be a colon:

if condition:


Sorry, but what does "colon" mean?


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


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


oh i got it
elif is totally opposite from if


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:


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


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


def the_flying_circus():

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

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

print the_flying_circus()

this code works