You are viewing a single comment's thread. Return to all comments →
li = [] rows = int(input().split(' ')[0]) for row in range(rows): li.append(list(map(int, input().rstrip().split()))) arr = np.array(li) print(arr) prod_ar = np.prod(np.sum(arr, axis=0)) print(prod_ar)
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 →