Error message - 17 Review Functions


#1



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


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
None


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

print shut_down('Yes')


#2

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


#3

ahhhhh lower case yes and no. silly problem thanks!


#4

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


#5

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

else:
    return "Sorry"

shut_down(s)
print(s)

here is the answer


#6

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.