Skip to content

Commit

Permalink
Numpy!
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalmastud authored Feb 23, 2020
1 parent 5ccda2b commit 8aced0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Numpy/Sum and Prod/Solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import numpy

lines = []
n, m = map(int, raw_input().split())
for _ in range(n):
lines.append(map(int, raw_input().split()))

my_array = numpy.array(lines)

print numpy.prod(numpy.sum(my_array, axis = 0))

0 comments on commit 8aced0a

Please sign in to comment.