I can do
>>> l = [[1,2,3][4,5,6],[7,8,9]] >>> zip (l[0],l[1],l[2])
and get
[[1,4,7], [2,5,8],3,6,9]]
but is there a way to do this without listing the sublists?
I have a list of lists of strings, and I'm trying to do some cross-matching across them. This would be useful.
This post has been edited by jon.kiparsky: 25 November 2012 - 11:47 PM

New Topic/Question
Reply



MultiQuote



|