You are viewing a single comment's thread. Return to all comments →
import numpy array_list =[] N, M = map(int, input().split()) for _ in range(N): arr= list(map(int, input().split())) array_list.append(arr) numpy_array= numpy.array(array_list) np_sum= numpy.sum(numpy_array, axis= 0) np_product_of_sum= numpy.prod(np_sum) print(np_product_of_sum)
Seems like cookies are disabled on this browser, please enable them to open this website
Sum and Prod
You are viewing a single comment's thread. Return to all comments →