Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum of list of lists python

List = [[1, 2, 3],
        [4, 5, 6],
        [7, 8, 9]]
          

for i in zip(*List):
  print(i)

out: 
(1, 4, 7)
(2, 5, 8)
(3, 6, 9)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #list #lists #python
ADD COMMENT
Topic
Name
2+6 =