Review functions


#1

def shut_down(s):
if s==yes:
return "shuttingdown"
elif s==No:
return "shutdown aborted"
else:
return "sorry"
whats wrong with code ?
error=Did you create a function called shut_down?


#2

Quote the string literals.


#3

Yes and no should be strings, put the quotes around it.


#4

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