[Tipz] python one-liner

Mark Logan mlogan at ccs.neu.edu
Wed Dec 3 10:28:42 EST 2003


(a, b) = zip(*[list[i:i+2] for i in range(0, len(list), 2)])

-Mark


More information about the Tipz mailing list