fork download
  1. #coding:utf-8
  2.  
  3.  
  4. x=[]
  5. y=[]
  6. z=[]
  7.  
  8. for i in range(10):
  9. x.append(i)
  10. y.append(i)
  11. z.append(i)
  12.  
  13.  
  14. print(x,y,z)
  15. n=list(zip(x,y,z))
  16. print(n)
  17.  
  18. for q in range(len(n)):
  19. print(sum(n[q]))
Success #stdin #stdout 0.02s 27704KB
stdin
Standard input is empty
stdout
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[(0, 0, 0), (1, 1, 1), (2, 2, 2), (3, 3, 3), (4, 4, 4), (5, 5, 5), (6, 6, 6), (7, 7, 7), (8, 8, 8), (9, 9, 9)]
0
3
6
9
12
15
18
21
24
27