Review Function


Oops, try again. Your shut_down function threw the following error: maximum recursion depth exceeded

i dont understand what maximum recursion depth i've exceeded.

def shut_down(s):
    if shut_down(s) == "yes":
     return (" Shutting Down ")
    elif shut_down(s) == "no":
     return (" Shutting Down ")
     return (" Sorry ")


recursion is a function call itself. which you do here:


it will endlessly call itself, sort of an infinity loop


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