Can't pass "Review: Functions" please help


#1

This is my code:

def shut_down(s):

    if yes:
        return "Shutting down"
    elif no:
        return "Shutdown aborted"
    else:
        return "Sorry"

When I run it though, I get this error message:

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

Can somebody please hep!?


#2

Your if statements are not right...
You need to have a condition in your if statement that looks something like

if s == 'yes':

and also do it for your elif statement. :slight_smile:


#3

thanks so much, I will try that.


#4

it worked! thanks a bunch!


#5

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


#7

A post was split to a new topic: Review


#8