fork download
  1. from itertools import chain
  2. lis = [['a','1','2','3','4'],['b','5','6','7','8'],['c','9','10','11','12'],['d','13','14','15','16']]
  3. it = iter(lis)
  4. print list( chain.from_iterable([map(list,zip(x,next(it))) for x in it]))
Success #stdin #stdout 0.01s 7728KB
stdin
Standard input is empty
stdout
[['a', 'b'], ['1', '5'], ['2', '6'], ['3', '7'], ['4', '8'], ['c', 'd'], ['9', '13'], ['10', '14'], ['11', '15'], ['12', '16']]