17. Review Functions


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

every time I enter this code it gives me the same response saying:
"Oops, try again. Your shut_down function threw the following error: maximum recursion depth exceeded in cmp"
what does that mean?


This does not look quite right. We are in the scope of shut_down() so only need to test the parameter value, s...

if s == 'yes':

elif s == 'no':