Review: Functions- Stuck (help would be appreciated)


very confused with what my mistake is...
It keeps saying: "Your function failed on the message yes. It returned 'yes' when it should have
returned 'Shutting down' "
def shut_down(s):
return s

if (s) == "yes":
    return ("shutting down")
elif (s) == "No":
    return ("Shut down aborted")


Hi @james_horsburgh ,

For this exercise, the strings in the code must exactly match what is specified in the instructions, including spacing and case. For example, this ...

elif (s) == "No":

... should be ...

elif s == "no":

Check all of your code; there are additional corrections that need to be made to match the strings in the instructions.