17. Review Functions


#1

def shut_down(s):
if shut_down(s == "yes"):
return "Shutting down"
elif shut_down(s == "no"):
return "Shutdown aborted"
else:
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?


#2

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':

#5