Eye and Identity
-
Practice>Python>Numpy>Eye and Identityhackerrank.com 2019. 3. 9. 05:57
hackerrank.comEye and IdentityProblem link : https://www.hackerrank.com/challenges/np-eye-and-identity/problemDifficulty : EasyTipThis is easy :)Even, If you resolve it correctly, but you need thisnumpy.set_printoptions(legacy='1.13')Solution import numpy dims = tuple(map(int, input().split(' '))) mm = numpy.eye(*dims, k = 0) numpy.set_printoptions(legacy='1.13') print(mm)