Just wanted to make sure you've familiarised yourself with the instructions already
Let us go through the instructions step by step:
1. First, def a function, shut_down, that takes one argument s. Don't forget the parentheses or the colon!
You did this step already, and it is correct. So step one, check.
2. Then, if the shut_down function receives an s equal to "yes", it should return "Shutting down"
In the function which you defined, it takes a parameter
s. Right now, the instructions say that if this s equals to "yes", it should return "Shutting down". This means that you have to set an
if statement, and something like this:
if s == "yes":
return "Shutting down"
instead of whatever you were trying to achieve by doing:
This same logic can be applied to steps 3 and 4:
3. Alternatively, elif s is equal to "no", then the function should return "Shutdown aborted".
4. Finally, if shut_down gets anything other than those inputs, the function should return "Sorry"
Why not give it another try?
P.S. You were probably following the example code extremely tightly, but I think it is just there to jolt your memory as to how to define functions and the corresponding syntax...not for direct copy and pasting. Take some time to think about what you are doing with each line of code...