Functins: Review, I am stuck!


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


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:


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