Review Function


#1



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 ")
    else:
     return (" Sorry ")


#2

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

shut_down(s)

it will endlessly call itself, sort of an infinity loop


#3

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