Review: Functions Need Help!


#1



https://www.codecademy.com/courses/python-beginner-c7VZg/4/1?curriculum_id=4f89dab3d788890003000096


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


#2

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


#3

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