You are viewing a single comment's thread. Return to all comments →
import numpy numpy.set_printoptions(legacy='1.13') print(numpy.eye(*map(int,input().split())))
'*' operator unpacks the two integers so they can be passed as arguements to numpy.eye
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 →
'*' operator unpacks the two integers so they can be passed as arguements to numpy.eye