Problem with the quiz in "Review: Functions"


Hello, I was writing this code:
def shut_down(s):
return s
if s == 'yes':
shut_down('Shutting down')
elif s == 'no':
shut_down('Shutdown aborted')

and I got this error: Your function failed on the message yes. It returned 'yes' when it should have returned 'Shutting down.
Could you please tell me where is the error and how to fix it?


Hi you should add return like that return shut_down('Shutting down') also for the other statement


I did it, thanks a lot.