Error message - 17 Review Functions


Error Message: Oops, try again. Your function failed on the message yes. It returned 'Sorry' when it should have returned 'Shutting down'

It's printing out the following so I do'nt understand why it's not working.
Shutting down

def shut_down(s):
    if s == 'Yes':
        return 'Shutting down'
    elif s == 'No':
        return 'Shutdown aborted'
        return 'Sorry'

print shut_down('Yes')


Try to use the lowercase "yes" and "no" in your comparisons
as required by the Instructions......


ahhhhh lower case yes and no. silly problem thanks!


An example of a deadly
I do not read the specification if i write a program...!!!!!!


"this code should not have worked, what is giving me a green check mark?"
s = "yes"
def shut_down(s):
if s == 'yes':
return "Shutting down"

elif s == 'no': 
    return "Shutdown aborted"

    return "Sorry"


here is the answer


There is always different ways to do things. It could be just that your code works but is not the exact code, or it may just be wrong.