Returns in functions


i keep getting an error saying i am returning yes instead of shutting down.
any tips?

def shut_down(s):
    return s

    if (s == "yes"):
        return "shuting down"

    elif (s == "no"):
        return "shutdown aborted"

        return "sorry"


Hi first remove the return s .... then the string inside the if statement should be

return "Shutting down"


thanks Wizmarco got it working !