Problem with the quiz in "Review: Functions"


#1

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')
else:
shut_down('Sorry')

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?


#2

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


#3

I did it, thanks a lot.