Advertisement
rfmonk

function_review.py

Feb 12th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. s = rawinput("Shall we shutdown? yes/no")
  2. def shut_down(s):
  3.     if s.lower == yes:
  4.         return "shutting down"
  5.     elif s.lower == no:
  6.         return "shutdown was aborted"
  7.     else:
  8.         return "clarify"
  9.     print shut_down()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement