Skip to content

Commit 40b6d32

Browse files
authored
Zeros and ones function numpy
1 parent 8b0e66c commit 40b6d32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Zeros_and_ones.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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+
a=numpy.array(s)
5+
a.shape=(3,3)
6+
print a

0 commit comments

Comments
 (0)