python lists in a list
<p>I have a simple question. I know how to bring out(I don't know how to say besides 'bring out') from a list. for example,</p>

<pre><code>Alist = [ 1, 2, 3, 4 ]
</code></pre>

<p>Then,</p>

<pre><code>Alist[0] = 1
Alist[1] = 2
</code></pre>

<p>But, what if</p>

<pre><code>Blist = [[1, 2, 3 ,4], [5, 6, 7]]
Blist[0] = [1, 2, 3, 4]
Blist[1] = [5, 6, 7]
</code></pre>

<p>I can 'bring out' the whole [5,6,7] as calling Blists[1]</p>

<p>My question is, how to bring out specific number in the list, lets say number 5. Hope this makes sense</p>

<p><strong>Blist[1]</strong> is a list itself.  To get the head element, use an index on <strong>Blist[1]</strong></p>

<pre><code>Blist[1][0]
</code></pre>

python python-3.x