17. Review: Functions
I've looked at quite a few other topics and couldn't find any answers, can anyone help me, and tell me why my code is wrong? Is it the indentation? 'Cause if (s) == "yes", or line 2, keeps getting "Syntax Error: invalid syntax"
def shut_down(s): if (s) == "yes" return "Shutting down" elif(s) == "no": return "Shutdown aborted" else(s): return "Sorry"
EDIT: The correct code is at 7/7, down at the bottom, read the rest to see problems with indentation and capitalization