Get value at list/array index or "None" if out of range in Python
<p>Is there clean way to get the value at a list index of <code>None</code> if the index is out or range in Python?</p>

<p>The obvious way to do it would be this:</p>

<pre><code>if len(the_list) &gt; i:
    return the_list[i]
else:
    return None
</code></pre>

<p>However, the "verboseness" reduces code readability. Is there a clean, simple, one-liner that can be used instead?</p>

<p>Thanks!</p>
