Write a function, shut_down, that takes one parameter (you can use anything you like; in this case, we\'d use s for string).
shut_down
s
The shut_down func
I know this doesn't exactly fit the specification but this is another common option which would catch a few more permutations:
def shut_down(s): s = s.upper() if s == "YES": return "Shutting down..." elif s == "NO": return "Shutdown aborted!" else: return "Sorry, I didn't understand you."