4.17 Review: Functions Error


def shut_down(s):

if s == Yes:
    return "Shutting down"
    print "Shutting down"

elif  s == No:
    return "Shutdown aborted"
    print "Shutdown aborted"

    return "Sorry"
    print "Sorry"

It's asking me if defined a function called shut_down?

Uh, yes I think I did. Also, other people who had problems here were able to pass doing some odd things to their code OR using pretty much the exact same code I have above. I added the print commands to see if I could appease codecademy but, nope.


Quotes around yes and no did the trick.