Review: Functions! Please check my code


Hello! Here is the exercise:

Here is my code :

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

There is no error, just that sentence ‘Did you create a function called shut_down?’ where I write the code.


you created a function named shout_down, not shut_down

i am also always shouting to my computer when it won’t shut down xD sorry, that joke was to tempting not to make


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