Review Functions ("Maximum Recursion Depth Exceeded")


#1

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"
    else:
        print "Sorry"

#2

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 == "...":

#3

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


#4

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