Review function


def shut_down(s):
return 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 5)

File "python", line 5
return"Shutting down"
IndentationError: expected an indented block

please help me

Replace this line with your code.


Could you post your code with the formats? You probably did not properly indent the codes. Remember that Python cares about white spaces.

In addition to that, you do not need to return s at the start.


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