List slicing
Uwe C. Schroeder
uwe at oss4u.com
Mon Oct 7 12:16:25 EDT 2002
Hi guys,
is there a slicing operation on nested lists ?
i.e.
list=[[1,2,3],[1,2,3],[1,2,3]]
the result of the operation should give [1,1,1] (or [2,2,2] :-))
This certainly assumes that the sublists are all the same size.
I can do it manually for sure - I was just curious if there is something
"built in" to do this.
UC
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
More information about the Python-list
mailing list