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

File “python”, line 2
if s==“yes”:
IndentationError: expected an indented block

Can't pass "Review: Functions" please help

please post your code with format:

otherwise indent doesn’t show, how are we suppose to solve an indent problem without being given the indent?


you need to use code blocks if you want to display mutliply lines of code


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