Functins: Review, I am stuck!


#1



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


It give me an invalid syntax error, but I reviewed basically everything and it I could not find a solution


Replace this line with your code. 
def shut_down(s):
    if shut_down(s):
        s == "yes"
    return "shutting down"
    
    elif s == "no":
    return "Shutdown aborted"
    
else
    return "Sorry"


#2

In our statement, we need to check of s == "yes". Just indenting it below our code doesn't do anything when checking to see if it's True or False. Look at your elif statement, that's what it should look like :slight_smile:


#3

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