This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import time | |
import sys | |
''' | |
#here I'm comparing memory occupied by both | |
#menory occupied by list | |
s = range(1000) | |
print('memory occupied by List',sys.getsizeof(5)*len(s)) | |
#menory occupied by numpy |