Review Functions ("Maximum Recursion Depth Exceeded")


Hello all!
I feel like I've worked out my code correctly here but I get an error, "Maximum Recursion Depth Exceeded". What does this mean and how what clues can someone offer to point me in the right direction?
Thank You

def shut_down(s):
    if shut_down("yes"):
        return "Shutting down"
    elif shut_down("no"):
        return "Shut down aborted"
        print "Sorry"


This line is calling the same function that is supposed to just check the inputs, as is this line,

A function that calls itself is called recursive.

The instructions state we should be checking the value of s, the parameter.

if s == "...":


Thank you for clarifying. I was able to figure it out as a result!


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