Why it is not figuring . I have take care of identatio


#1

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


#2

Try removing this return statement.


#3

I tried doing it , again it is not working..

this is the error i get

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 2)


#4

Please, post the URL/link to the exercise you're on. You should post your code using < / > on your menu.

Thank you! :slight_smile:


#5

Asides removing that return statement, try using single quotes for your strings instead of double. Things could be funny sometimes. :wink:


#6

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