17 review functions help please


#1



I got this error message in my code



what is wrong with my code? Pls help me


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


#2

see what happens when we don't want to shut down the computer:

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

see the error message in the output window? Use it to figure out what is wrong when we don't want to shutdown our computer


#3

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