Oops, try again. Your function failed on the message yes. It returned 'yes' when it should have returned 'Shutting down'
<p>Here is my pyhton practice program: </p>

<pre><code>def shut_down(s):
    return s

    if yes():
        shut_down("Shutting down")
    elif no():
        shut_down("Shutdown aborted")
    else:
        shut_down("Sorry")
</code></pre>

<p>the question given to me are:</p>

<ol>
<li>if the shut_down function receives an s equal to "yes", it should return "Shutting down"</li>
<li>elif s is equal to "no", then the function should return "Shutdown aborted".</li>
<li>if shut_down gets anything other than those inputs, the function should return "Sorry"</li>
</ol>

<p>As others pointed out in comments your return should at the logical end of your function. </p>

<pre><code>def shut_down(s):

    if s == "yes":
        r =  "Shutting down"
    elif s == "no":
        r =  "Shutdown aborted"
    else:
        r = "Sorry"
     return r
</code></pre>

python python-2.7 python-3.x