list to list of pairs

bvdpoel at bvdpoel at
Mon Nov 19 19:11:14 CET 2001

I've sure I've seen this somewhere...but I can't today...

I need to convert a list like [1,2,3,4,5,6] to a list of pairs [[1,2],
[3,4], [5,6]]. Isn't there a way to do this with map() or zip()???

Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bvdpoel at

More information about the Python-list mailing list