Skip to content

Commit a64283b

Browse files
authored
Merge pull request #20 from HighnessAtharva/patch-3
Added working solution to EyeandIdentity
2 parents 178fdbf + ba08a90 commit a64283b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Numpy/EyeandIdentity.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
Domain : Python
55
Author : Ahmedur Rahman Shovon
66
Created : 15 July 2016
7+
Updated : 17 March 2021
78
Problem : https://www.hackerrank.com/challenges/np-eye-and-identity/problem
89
'''
9-
import numpy
10-
n,m = map(int,input().split())
11-
print(numpy.eye(n,m,k=0))
10+
import numpy as p
11+
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

Comments
 (0)