How to print boolean return value
<p>The following two functions produce similar results</p>

<pre><code>def is_between(x, y ,z):
    return x &lt;= y &lt;= z
is_between(1, 2, 3)

def is_between(x, y, z):
    if x &lt;= y &lt;= z:
        print(True)
        return True
    else:
        print(False)
        return False
is_between(1, 2, 3)
</code></pre>

<p>The first function returns a boolean value more efficiently than the second function. The second function, on the other hand, uses conditionals to describe how it would return true and when it would return false, providing us with the opportunity to print each of those possibilities, were they to happen.</p>

<p>Is it possible to print or otherwise use the boolean value returned by the first function? I tried print(is_between) but that was incorrect.</p>

<p><strong>Solution:</strong></p>

<p><em>This works</em></p>

<pre><code>def is_between(x, y ,z):
    return x &lt;= y &lt;= z
print(is_between(1,2,3))
</code></pre>

<p><em>This does not</em></p>

<pre><code>def is_between(x, y ,z):
    return x &lt;= y &lt;= z
is_between(1,2,3)
print(is_between)
</code></pre>