Slice list of lists without numpy
<p>In Python, how could I slice my list of lists and get a sub list of lists without numpy?</p>

<p>For example, get a list of lists from A[1][1] to A[2][2] and store it in B:</p>

<pre><code>A = [[1,  2,  3,  4 ],
     [11, 12, 13, 14],
     [21, 22, 23, 24],
     [31, 32, 33, 34]]

B = [[12, 13],
     [22, 23]]
</code></pre>

<p>You can <em>slice</em> <code>A</code> and its sublists:</p>

<pre><code>In [1]: A = [[1,  2,  3,  4 ],
   ...:      [11, 12, 13, 14],
   ...:      [21, 22, 23, 24],
   ...:      [31, 32, 33, 34]]

In [2]: B = [l[1:3] for l in A[1:3]]

In [3]: B
Out[3]: [[12, 13], [22, 23]]
</code></pre>

python list slice