import numpy as np np array([ , , , , , , , , ]print(aoutput[ notice that in np array square brackets are present absence of square bracket introduces an error to print the array we can use print(alistex py items [ , , , , , , , , print(itemsoutput[ in the abovewe have written two different programs one is using numpy and another is using list initiallyboth of the programs look the same even the output is the same but numpy is had more advantage over lists especially based on speed and memory allocation there are often cases when we want numpy to initialize the values of the array for us numpy provides methods like ones()zeros()and random random(for these cases we just pass them the number of elements we want it to generate array array in numpy can be created in the following mannerg np array([( , , ),( , , )]alternatively np array([[ , , ],[ , , ]]page