Returns in functions


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/python-beginner-c7VZg/4/1?curriculum_id=4f89dab3d788890003000096#
<In what way does your code behave incorrectly? Include ALL error messages.>
i keep getting an error saying i am returning yes instead of shutting down.
any tips?
<What do you expect to happen instead?>

```python

def shut_down(s):
return s

if (s == "yes"):
    return "shuting down"

elif (s == "no"):
    return "shutdown aborted"

else:
    return "sorry"
<do not remove the three backticks above>

#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 !