Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum 2d array in python

#create 2D array Matrix 4X4
Matrix = [[0 for i in range(4)] for j in range(4)]
#2D array python 
 x=[[11, 12,13],[14, 15,16],[17, 18,19]]                                                   
sum(sum(x,[]))  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #array #python
ADD COMMENT
Topic
Name
9+1 =