17 create function error


#1


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

For some reason it is giving me the error "did you create a function called shut_down?", and my code looks exactly the same as some people saying it was the correct answer.


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


#2

Hi try to put The " " around no and yes in your if and elif statement


#3

That worked, thanks!


#4

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