I don't understand the error which i got


#1

def shut_down(s):
if s == 'yes':
print "shutting down"
else s == 'no':
print "shutting down is aborted"
else:
print "sorry"

File "python", line 4
else s == 'no':
^
SyntaxError: invalid syntax


#2

def shut_down(s):
if s=='yes':
return ("shutting down")

elif s=='no':
    return ("Shutdown aborted")

else:
    return ("sorry")

    there ya go, I fiddled around with it for a devil of a long time, happy coding