square brackets after a function call
<p>I am a total novice at Python, and have come across a piece of code that confuses me. </p>

<pre><code>ts, pkt2 = capPort2.wait(1, 45)[0]
</code></pre>

<p>The previous line confuses me. I understand the call to the function <code>wait</code> with the two parameters, but what does the <code>[0]</code> mean or do?</p>
