Exercise 17: Review Functions


#1



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


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


#2

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.


#3

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