print(size)
i = 0
j = 0
while i < 3:
    d[j] = j
j += 1
new_size = sys.getsizeof(d)
if size != new_size:
    print(new_size)
size = new_size
i += 1
Why is the size of an empty dict same as that of a non empty dict in Python?