human
memory size of an array.
assistant
Here is a Python function to calculate the memory size of an array

import numpy as np

def memsize(array):
    """
    Memory size of an array.
    """
    return array.nbytes

# Enter the array
array = np.arange(10000000)

# Calling the function
print((memsize(array)))

#Example Output
# 80000000

#Remember to inspect code for bugs.