Help with Step 17, Function Review


def shut_down(s):
I am working on #17 Review: Functions. I have reviewed the Discussion but I still need help. Below is my code

def shut_down(s);
if s=="Yes":
return "Shutting Down"
elif shut_down(s):
return "Shutdown aborted"
return "Sorry"


This is the error that I am getting:

"pythonOops, try again. Your shut_down function threw the following error: maximum recursion depth exceeded in cmp"



Here is where the recursion is happening.

Write the condition like you did for "yes". Note that the lesson asks for lowercase "yes" and "no".


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.