Advertisement
Guest User

Python - computerhope

a guest
Nov 28th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def shut_down(s):
  2.     return s
  3. if s == "yes"
  4. return "Shutting down"
  5. elif s == "no"
  6. return "Shutdown aborted"
  7. else:
  8. return "Sorry"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement