4.17 Review: Functions


def shut_down(s):

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

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


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


Thank you very much!


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