Python Help: no conditionals, or loops
<p>need help solving this problem without conditionals, or loops:</p>

<p>Write the function <code>getInRange</code> which takes 3 values (which you may assume are all numeric) -- <code>x</code>, <code>bound1</code>, and <code>bound2</code>, where <code>bound1</code> is not necessarily less than <code>bound2</code>. If <code>x</code> is between the two bounds, just return it unmodified.  Otherwise, if <code>x</code> is less than the lower bound, return the lower bound, or if <code>x</code> is greater than the upper bound, return the upper bound.</p>

<p>For example:</p>

<ul>
<li><code>getInRange(1, 3, 5)</code> returns 3 (the lower bound, since 1 lies to the left of the range [3,5])</li>
<li><code>getInRange(4, 3, 5)</code> returns 4 (the original value, since 4 is in the range [3,5])</li>
<li><code>getInRange(6, 3, 5)</code> returns 5 (the upper bound, since 6 lies to the right of the range [3,5])</li>
<li><code>getInRange(6, 5, 3)</code> also returns 5 (the upper bound, since 6 lies to the right of the range [3,5])</li>
</ul>
