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.
1 parent 5a12770 commit ba08a90Copy full SHA for ba08a90
Numpy/EyeandIdentity.py
@@ -4,9 +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 as np
10
-np.set_printoptions(sign=' ')
11
-print(np.eye(*map(int, input().split())))
+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