You are viewing a single comment's thread. Return to all comments →
import numpy as np
np.set_printoptions(legacy='1.13') n = input() l1 = list(map(int,n.split(' '))) print(np.eye(l1[0],l1[1]))
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 →
import numpy as np
np.set_printoptions(legacy='1.13') n = input() l1 = list(map(int,n.split(' '))) print(np.eye(l1[0],l1[1]))