fork download
  1. a = [[1, 2, 3, 3, 4],
  2. [1, 2, 2, 3, 4],
  3. [1, 3, 3, 3, 4],
  4. [1, 1, 1, 2, 3],
  5. [1, 1, 1, 0, 0]]
  6.  
  7. print([list(x) for x in zip(*a)])
Success #stdin #stdout 0.02s 9172KB
stdin
Standard input is empty
stdout
[[1, 1, 1, 1, 1], [2, 2, 3, 1, 1], [3, 2, 3, 1, 1], [3, 3, 3, 2, 0], [4, 4, 4, 3, 0]]