We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 676d8a6 commit afa2150Copy full SHA for afa2150
Transpose_and_flatten.py
@@ -0,0 +1,10 @@
1
+# Enter your code here. Read input from STDIN. Print output to STDOUT
2
+import numpy
3
+s=list(map(int,raw_input().split()))
4
+s1=[]
5
+for i in range(s[0]):
6
+ s1.append(list(map(int,raw_input().split())))
7
+arr = numpy.array(s1)
8
+print numpy.transpose(arr)
9
+print arr.flatten()
10
+
0 commit comments