Returns in functions


#1



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

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"

    else:
        return "sorry"


#2

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

return "Shutting down"

#3

thanks Wizmarco got it working !