Python function calling
<p>I've only started learning Python. If I wrote:</p>

<pre><code>def questions(): 
    sentence= input(" please enter a sentence").split()
</code></pre>

<p>How would I end the function If the user didn't input anything and just hit enter </p>

<pre><code>def questions():
    sentence= input(" please enter a sentence").split()
    if sentence == []:
        #This is what happens when nothing was entered
    else:
        #This happens when something was entered 
</code></pre>

python