Issue with "Review: Functions" lesson


#1

I am at a loss as to what is wrong with my code for this lesson, it looks exactly like the example. The error says: "Oops, try again. Your function failed on the message yes. It returned 'yes' when it should have returned 'Shutting down' "

I also tried changing the indentation so the if else clause was not indented inside the variable. no luck

My code:

def shut_down(s):
return s

if yes():
    shut_down("Shutting down")
elif no():
    shut_down("Shutdown aborted")
else:
    shut_down("Sorry")

#2

From the error message I get this...

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

I haven't checked this against the lesson. Please supply the lesson # if it is still giving you a problem.