Review functions


#1

https://www.codecademy.com/en/courses/python-beginner-c7VZg/4/1?curriculum_id=4f89dab3d788890003000096#
def shut_down(s):
if s== "yes":
return("Shutting down")
elif s== "no":
return("Shutdown aborted")
else:
return(sorry)

I sincerely don't understand where the problem is
It keeps asking me if I created a function shut_down


#2

You just forgot to put sorry in quotes


#3

And indent your code, if you haven't.


#4

And least of all, do not write a return value in parens. It's messy and clutters up the code.

return "Sorry"

#5

In addition to those two above, return statements don't necessarily need brackets. Just something like return "Shutting down" is sufficient.

EDIT:
@mtf beat me to it


#6

Thank you all ,
very illuminating indeed
I did not even see I was missing quotation marks


#9