Review: Functions! Please check my code


#1

Hello! Here is the exercise:

https://www.codecademy.com/courses/learn-python/lessons/functions/exercises/review-functions?action=lesson_resume

Here is my code :

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

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


#2

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


#3

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