Review: Functions Need Help!


maximum recursion depth exceeded

Replace this line with your code. 
def shut_down(s):
    if shut_down(s) == "yes":
        return "Shutting down"
    elif shut_down(s) == "no":
        return "Shutdown aborted"
        return "Sorry"


That function does not need to invoke itself, try comparing to the argument instead of to the result of calling the function.


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