Error: Did you create a function?


Error: Oops, try again. Did you create a function called shut_down?

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



your last line:


i don't understand the purpose it serves, i would remove it.

in your elif condition, you compare shut with "no", instead of comparing s with "no", causing the error message.


Ooops..that was a typo.

the code worked now.

Thanks for your help!