I got stuck


#1


def shut_down(s):
return

if shut_down(yes):
    return "Shutting down"
elif shut_down(no):
        return "Shutdown aborted"
else:
            return "sorry"

This are the instructions :

First, def a function, shut_down, that takes one argument s. Don't forget the parentheses or the colon!
Then, if the shut_down function receives an s equal to "yes", it should return "Shutting down"
Alternatively, elif s is equal to "no", then the function should return "Shutdown aborted".
Finally, if shut_down gets anything other than those inputs, the function should return "Sorry"


Replace this line with your code.


#2

First off, you need to return s after def shut_down. Secondly, you need to have s not shut_down in your if and elif. Thirdly, you need yes and no in your if and else statements in quotes not ().


#3

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