Answers for "sum of column in 2d array python"

1

sum of column in 2d array python

col_totals = [sum(x) for x in zip(*my_list)]
Posted by: Guest on April-19-2022
-1

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,[]))
Posted by: Guest on March-24-2022

Python Answers by Framework

Browse Popular Code Answers by Language