WHAT AM I DOING WRONG " The Big IF"


#1

def the_flying_circus():
if answer > 5:
Print "Correct"
Return True

elif anwser < 5:
    print "Wrong"        
    Return False

else answer = 5:
    print "False"
    Return False

MY error: File "python", line 4
Print "Correct"
^
SyntaxError: invalid syntax


#2

Borrowing code from another lesson is probably not the best idea. Read the instructions carefully. What is asked for? Try starting this lesson over from scratch and follow the instructions. Make sure your function returns True.


#3

Tried again still an error

def the_flying_circus():
if (5>=5) and (6>4):
print "Correct"
return True
elif (4>6) not (5!=5):
print "Wrong"
return False

else (5>6):
    print "Ding Ding DIng"
    return True

My Error: File "python", line 6
elif (4>6) not (5!=5):
^
SyntaxError: invalid syntax


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.