You are viewing a single comment's thread. Return to all comments →
import numpy numpy.set_printoptions(legacy='1.13') n, m = map(int, input().split()) if (n == m): print(numpy.identity(n)) else: print(numpy.eye(n, m))
Seems like cookies are disabled on this browser, please enable them to open this website
Eye and Identity
You are viewing a single comment's thread. Return to all comments →