Skip to content

Instantly share code, notes, and snippets.

@solarce
Forked from anonymous/gist:4482130
Last active December 10, 2015 19:38
Show Gist options
  • Save solarce/4482143 to your computer and use it in GitHub Desktop.
Save solarce/4482143 to your computer and use it in GitHub Desktop.
def shut_down(s):
if s.lower() == "yes":
return "Shutting down..."
elif s.lower() == "no":
return "Shutdown aborted!"
else:
return "Sorry, I didn't understand you."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment