Review


#1

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

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


Can't pass "Review: Functions" please help
#2

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?


#5

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


#8

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