Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Shutdown Function
# A Codecademy Python (Review: Functions) assignment
# Dr. Steven B. Combs, coding novice
def shut_down(s):
if s.lower() == "yes":
return "Shutting down..."
elif s.lower() == "no":
return "Shutdown aborted!"
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
You can’t perform that action at this time.