Review function :-Try this


#1

def shut_down(s):
if s=="yes":
return "Shutting down"
elif s=="no":
return "shutdown aborted"
else:
return "sorry"


#2

Hi,

I'm not sure what your question is, but there is a " missing after "sorry.


#3

i tried this and it worked. not sure why
def shut_down(s):
if s == "Yes":
return shut_down("Shutting down")
elif s == "No":
return shut_down("Shutdown aborted")
else:
return shut_down("Sorry")


#4

Use this
def shut_down(s):
if s == "yes":
return "Shutting Down"
elif s == "no":
return "Shutdown Aborted"
else:
return "Sorry"
The indentions are really important. Indent if, elif ,else once and all the returns twice.