Write a NumPy program to get the memory usage by NumPy arrays.
import numpy as np from sys import getsizeof x = [0] * 1024 y = np.array(x) print(getsizeof(x))
Sample Output:
8256
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer