Review Function question


#1

<I am unclear what I’m doing wrong in this post ! The error says "Your function failed on the message no. It returned ‘Sorry’ when it should have returned ‘Shutdown aborted’>

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

<Iimage

<What do you expect to happen instead?>

```python

def shut_down(s):

if s == "yes":
    return "Shutting down"
elif s == "No":
    return "Shutdown aborted"    
else:
    return "Sorry"
<do not remove the three backticks above>

#2

The N in “no” should not be capitalized.


#3

def shut_down(s):
if s == “yes”:
return “Shutting down”

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

#Use correct indentations!


#4

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