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 412336d commit 3fccdfe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Numpy/Array Mathematics/Solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import numpy

N, M = map(int, input().split())

A = numpy.array([list(map(int, input().split())) for n in range(N)])
B = numpy.array([list(map(int, input().split())) for n in range(N)])

print (A + B)
print (A - B)
print (A * B)
print (A // B)
print (A % B)
print (A ** B)

0 comments on commit 3fccdfe

Please sign in to comment.