Can't pass "Review: Functions" please help


This is my code:

def shut_down(s):

    if yes:
        return "Shutting down"
    elif no:
        return "Shutdown aborted"
        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!?


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:


thanks so much, I will try that.


it worked! thanks a bunch!


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


A post was split to a new topic: Review