breaking up a list

C Gillespie csgcsg39 at
Tue Sep 28 13:04:55 CEST 2004

Dear All,

If I have a list, say


What's the best way of converting it into this: [[1, 2], [3, 4], [5, 6]],
i.e. splitting it into pairs.

Many thanks


More information about the Python-list mailing list