fork(1) download
  1. l = [[4, 3, 2, 1], [5, 6, 7, 8], [12, 11, 10, 9], [13, 14, 15, 16]]
  2. print(sum([[x[::-1],x][i&1]for i,x in enumerate(l)],[]))
Success #stdin #stdout 0.02s 27704KB
stdin
Standard input is empty
stdout
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]