Review function


#1



https://www.codecademy.com/en/courses/python-beginner-c7VZg/4/1?curriculum_id=4f89dab3d788890003000096


def shut_down(s):
return s

if s == "yes":
return "Shutting down"

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

else:
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.


#2

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.


#3

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