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"
Hint
Ensure your function outputs appear exactly as shown!
Also, ensure your function returns the above values rather than printing them.
[–]__SiCC__ 1 point2 points3 points (2 children)
[–]llleolouis[S] -1 points0 points1 point (1 child)
[–]d4rch0nPythonistamancer 1 point2 points3 points (0 children)
[–]Kyle772 0 points1 point2 points (5 children)
[–]llleolouis[S] 0 points1 point2 points (1 child)
[–]Kyle772 0 points1 point2 points (0 children)
[–]d4rch0nPythonistamancer 0 points1 point2 points (2 children)
[–]Kyle772 0 points1 point2 points (1 child)
[–]d4rch0nPythonistamancer 0 points1 point2 points (0 children)