17. Review: Functions


Review: Functions

Oops, try again. Your function failed on the message yes. It returned 'Shuting down' when it should have returned 'Shutting down...:cry:

def Shut_down(s):
    if s =="yes":
        return "Shutting down"
    elif s =="no":
        return "Shutdown aborted"
        return "Sorry"


please help :disappointed_relieved:


HI the name of the function

def Shut_down(s):

should be shut_down instead of Shut_down (change it also to the call function)


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