17/19 review


#1

def shut_down(s):
return message
if s == "yes":
return "Shutting down"
elif s == "no":
return "Shutdown aborted"
else:
return "Sorry"

Oops, try again. Did you create a function called shut_down?

**ty!!


#2

@lifeofdust,
If you present =code= in your Post....
Please re-edit your Post

  • leave one blank-line above of your code
  • select your code in the Post
  • then =click= on the </>-symbol-of-this-editor

Your code will then be in a pre-code state
and you will be able to make/present the proper indentations.

or even better use
= http://discuss.codecademy.com/t/using-backticks-to-format-your-code/3697

============================================

Keep in mind,
that a return _Statement will also cause an =Exit= of the function....

 def shut_down(s):
     #return message
     if s == "yes":
         return "Shutting down"
     elif s == "no":
         return "Shutdown aborted"
     else: 
         return "Sorry"

#4