17 create function error



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


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


That worked, thanks!


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