>>> from sys import getsizeof >>> a = 42 >>> getsizeof(a) 12 >>> a = 2**1000 >>> getsizeof(a) 146 >>>