4.17 Review: Functions


#1

def shut_down(s):

if s == yes:
    return "Shutting down"
elif s == no:
    return "Shutdown aborted"
else:
    return "Sorry"

After inputting this, I recieve the following error message:
Oops, try again. Did you create a function called shut_down?


#2

Remember to quote your strings. They currently look like variables to the interpreter.


#3

Thank you very much!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.