Not sure what is happening here. I looked at a few articles and essentially made mine look identical and yet I still am receiving an error. I have s defined in the top line.
Traceback (most recent call last):
File "python", line 4, in
NameError: name 's' is not defined
def shut_down(s): return s if s == "yes"(): shut_down("Shutting Down") elif s == "no"(): shut_down("Shutdown aborted") else: shut_down("Sorry")