Need Help with 17 Review Functions plz


17 Review Functions

I get the error message "Oops, try again. Did you create a function called shut_down?"

Im not sure what is wrong here, so any help is appreciated.

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


i would look at the error message in the output window, i think that one is more informative, here:

if s == yes:

yes is undefined variable.


I get no error in the output window. Do you know what could be wrong?


that is what is wrong, what data type should yes be?


Ah. It was a string, so I needed to put it into quotes. I got it now.