Oops, try again. Your function failed on the message yes. It returned 'yes' when it should have returned 'Shutting down'


#1

def shut_down(s):
return s
if shut_down():
shut_down("Shutting down")
elif shut_down():
shut_down("Shutdown aborted")
else:
shut_down("Sorry")


#2

Your control flow is all over the place. :sweat_smile:

return's

come after if or else statements.
function call's

come after the functoon is defined and have a zero level indentation. :slight_smile:


#3

Can you provide a link?


#4

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