17. Review: Functions

I cant see where i have gone wrong with my code here.

1 Like

Hi
I think that yes and no should be in quotes.

1 Like

@dawidrz87 Thanks that works

1 Like

You can remove () between s, with if and elif.

1 Like

This is my code:
def shout_down(s):

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

Oops, try again. Did you create a function called shut_down

Should work but i am still getting the folloewing error can any one advise?

def shut_down
you typed it incorrectly

Thanks!!! that solve my problem

A post was split to a new topic: Shutdown issues

A post was merged into an existing topic: Shutdown issues