# Numpy size() function | Python # Python program explaining# numpy.size() method# importing numpyimport numpy as np# Making a random arrayarr = np.array([[1, 2, 3, 4], [5, 6, 7, 8]])# By default, give the total number of elements.print(np.size(arr))