fork download
  1. coords = [(14, 9, 7), (11, 1, 20), (1, 1, 7), (13, 9, 1), (9, 13, 4), (20, 1, 4), (17, 6, 8), (14, 10, 1), (14, 2, 17), (7, 20, 7)]
  2. lista = [[],[],[]] # [[x,x,x..], [y,y,y..], [z,z,z..]]
  3. for x, y, z in coords: # fazer o unpacking de cada tuple
  4. lista[0].append(x)
  5. lista[1].append(y)
  6. lista[2].append(z)
  7. print(lista)
Success #stdin #stdout 0.01s 9992KB
stdin
Standard input is empty
stdout
[[14, 11, 1, 13, 9, 20, 17, 14, 14, 7], [9, 1, 1, 9, 13, 1, 6, 10, 2, 20], [7, 20, 7, 1, 4, 4, 8, 1, 17, 7]]