Review: Functions


Oops, try again. Your code looks a bit off. Feel free to peek back at earlier exercises if you need a refresher! Your code threw the following error: unindent does not match any outer indentation level (python, line 6)

I think my code should work.. and it doesn't and I don't know why.

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


Never mind, I copied a code that looked exactly like mine.... and it worked..... So this exercise turned out to be just frustrating


The indention of your code is a bit off. Indention is crucial in python.


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