Review Functions


def shut_down(s):

if s == "yes":
    return "shutting down"
elif s == "no":
    return "shutdown aborted"
    return "sorry"

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: expected an indented block (python, line 3)

i dont know whats with the code...please do suggest the complete code from the starting. thank you

Replace this line with your code.


the if/elif/else clause should be inside the function, thus requires indention (spaces/tab)


Hi @betasurfer81151,

We are not aloud to just give you the correct code.

However we can still help you. You appear to be having an indentation error. In order to help you with this, I am going to need you to post your formatted code. If you don't know how to post formatted code, please check out the following link:


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