We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 178fdbf + ba08a90 commit a64283bCopy full SHA for a64283b
Numpy/EyeandIdentity.py
@@ -4,8 +4,11 @@
4
Domain : Python
5
Author : Ahmedur Rahman Shovon
6
Created : 15 July 2016
7
+Updated : 17 March 2021
8
Problem : https://www.hackerrank.com/challenges/np-eye-and-identity/problem
9
'''
-import numpy
10
-n,m = map(int,input().split())
11
-print(numpy.eye(n,m,k=0))
+import numpy as p
+np.set_printoptions(legacy='1.13')
12
+n, m = map(int, input().split())
13
+print(np.eye(n, m, k=0))
14
+
0 commit comments