list to list of pairs

bvdpoel at uniserve.com bvdpoel at uniserve.com
Mon Nov 19 13:11:14 EST 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 uniserve.com
WWW:   http://users.uniserve.com/~bvdpoel



More information about the Python-list mailing list