Python ¿Cuánta memoria necesita una variable?
from sys import getsizeof
a = 42
getsizeof(a) # size of object in bytes
Real Raccoon
from sys import getsizeof
a = 42
getsizeof(a) # size of object in bytes