The big if: What am I doing wrong?


#1



https://www.codecademy.com/en/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096#

File "python", line 8
else name == "test":
^
SyntaxError: invalid syntax

It would run :smiley:


name = 'Test'
# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if name == 'Test' or name == 'test':   
        return "YES!"
    elif name == "NotTest":
      print 'You messed up!'
    else name == "test":
            print "Wrong!"


#2

Hi the else statement doesn't takes condition
and you should look well your indent


#3

Also, your function should return True. :slight_smile:


#4

Thank's for the help man


#5

Make sure that the_flying_circus() returns True

def the_flying_circus():
if 3 > 4 and 4 == 3:
return False # Don't forget to indent
# the code inside this block!
elif 31==31 and 31>=29:
return True

else : # Keep going here.
  print the_flying_circus()