Again, the example code above is just there for your reference!
The above example is not very well explained, and has mislead many learners over the same confusion as you are experiencing. Notice that
sad() are both function calls. We can only assume that they both return
However, if we follow the instructions without regard for the example, the code falls into place...
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"
elif s is equal to
"no", then the function should
return "Shutdown aborted".
shut_down gets anything other than those inputs, the function should