17 Review: Functions :( please help


I have no idea what is wrong with my code :frowning: Please help me fix this...

error messages.:
File "python", line 3
return "Shutting down"
IndentationError: expected an indented block

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

    elif s == "no":
     return "Shutdown aborted"

     return "Sorry"


Indent your code properly..like this..

def some_function():
    if condition1:
        # your code.
    elif condition2:
       # your code
        # your code

4 spaces!


Thank you >.<
its working now


Hi @paolalaborda
You've just seen that How indentation can make your code to not work properly?
So Im putting few reads(Articles) here..



Thank you for your help :slight_smile:


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