17. Review: Functions


#1

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"
    else: 
        return "Sorry"

Shut_down("yes")

please help :disappointed_relieved:


#2

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)


#3

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