17. Review Functions

my Function is not showing up as being defined so i get the error message:
Oops, try again. Did you create a function called shut_down?

The program should have recognized the function

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


Remove the above line and it should be good.


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