Review:Functions


#1

I don't understand what i am doing wrong on line 4. here is my code
def shut_down(s):
if shut_down(): s = "yes"
return "shutting down"
elif shut_down(s): s == "no":
return = "shutdown aborted"
else
return "sorry"


#2

def shut_down(s):

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

#3

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