17. Review: Functions


#1

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


#2

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


#3

@dawidrz87 Thanks that works


#4

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


#5

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?


#6

def shut_down
you typed it incorrectly


#7

Thanks!!! that solve my problem


#8

A post was split to a new topic: Shutdown issues


#9

A post was merged into an existing topic: Shutdown issues


#10