Code is not working


#1

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


#2

a single equal sign means assign, you should check if s equals yes or no, to check if something is equal, use two equal signs


#4

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