Review functions


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


Quote the string literals.


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


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