import numpy as np
example_array=np.array([[4,3,7],[5,2,6]
[1,7,4]])
num_elements=example_array.size
elements_bytes=example_array.itemsize
total_bytes=example_array.nbytes
print("Array") print(example_array)
print("Number of elements;",num_elements)
print("Length of one array element in byte:",elements_bytes)
print('The total bytes consumed by the elements:',total_bytes)
To embed this program on your website, copy the following code and paste it into your website's HTML: