creating arrays arrays can be created in multiple ways in numpy one of the ways was demonstrated earlier to create singledimensional array similarly we can stack up multiple lists to create multidimensional array in [ ]arr np array([[ , , ],[ , , ],[ , , ]]arr shape out[ ]( in [ ]arr out[ ]array([[ ][ ][ ]]in addition to this we can create arrays using bunch of special functions provided by numpy np zeroscreates matrix of specified dimensions containing only zeroesin [ ]arr np zeros(( , )arr out[ ]:array([ ] ]]np onescreates matrix of specified dimension containing only onesin [ ]arr np ones(( , )arr out[ ]array([ ] ]]np identitycreates an identity matrix of specified dimensionsin [ ]arr np identity( arr out[ ]array([ ] ] ]]oftenan important requirement is to initialize an array of specified dimension with random values this can be done easily by using the randn function from the numpy random packagein [ ]arr np random randn( , arr out[ ]array([ - - ][- - ] ]]