[Tutor] Slices of lists of lists
Jose Amoreira
ljmamoreira at gmail.com
Fri Mar 28 12:01:14 CET 2014
On 03/28/2014 10:32 AM, Alan Gauld wrote:
> No, standard slices on the first element will give you sublists of the
> first row. Python doesn't have any concept of that second dimension, it
> only sees a list of items. The fact those items are themselves lists is
> purely incidental to the interpreter.
>
>
> HTH
Thanks, Alan. It was very helpful. I see it now:
l[:] is just a copy of the list itself. Then, l[:][k] == l[k].
Thanks again.
Jose
More information about the Tutor
mailing list