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 f80d4f2 commit 8ca5a03
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Numpy/Transpose and Flatten/Solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import numpy

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

my_array = numpy.array(lines)
print numpy.transpose(my_array)
print my_array.flatten()

0 comments on commit 8ca5a03

Please sign in to comment.