Trouble with "Review: Functions"


#1



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


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"
    else:
        return "Sorry"


#2

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


#3

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