Functions, Review: function. Am stuck, need help ASAP!


please am stuck and need help asap.
this my code but it keep telling me: Your function failed on the message yes. It returned ‘yes’ when it should have returned ‘Shutting down’

def shut_down(s):
return s

if s == “yes”:
return (“Shutting down”)

elif s == “no”:
return “Shutdown aborted”

return “Sorry”



Replace this line with your code.

<do not remove the three backticks above>


a function ends the moment a return keyword is reached, so return s will end the function, the rest of the code is never reached


Thanks a lot, I deed removed the return s and it worked. I really appreciate the help@stetim94