1# Example usage 1:
2import numpy as np
3numpy_array = np.array([[1, 2, 3, 4, 5],
4 [1, 2, 3, 4, 5],
5 [1, 2, 3, 4, 5]])
6np.sum(numpy_array, axis=0)
7--> array([ 3, 6, 9, 12, 15])
8
9# Example usage 2 (without numpy):
10array = [[1, 2, 3, 4, 5],
11 [1, 2, 3, 4, 5],
12 [1, 2, 3, 4, 5]]
13[sum(x) for x in zip(*array)]
14--> [3, 6, 9, 12, 15]