Exercise 17: Review Functions



File "python", line 5
SyntaxError: 'return' outside function

To complete the exercise.

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


The problem you build has a very different design then what is displayed in the example. Read the instructions, don't copy paste the example.


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