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


#1

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”

else:
return “Sorry”

shut_down(“yes”)

```python

Replace this line with your code.

<do not remove the three backticks above>

#2

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


#3

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


#4