I ran this:
import sys diii = {\'key1\':1,\'key2\':2,\'key3\':1,\'key4\':2,\'key5\':1,\'key6\':2,\'key7\':1} print sys.getsizeof(diii) # output: 1048 diii =