Need Help with 17 Review Functions plz


#1



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'


#2

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.


#3

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


#4

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


#5

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


#6