Trouble with "Review: Functions"


I keep getting the nonspecific error message "Did you create a function called shut_down?" and I'm not sure what's wrong. Can anybody help?

def shut_down(s):
    if s == yes:
        return "Shutting down"
    elif s == no:
        return "Shutdown aborted"
        return "Sorry"


Write this as a string literal... "yes" and "no".


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