python sys.getsizeof method returns different size of same kind of lists
问题 I am making two lists in IDLE of Python 3.7 there names are a and b they are going to differ in terms of initialization but the content is same(as I think so, but maybe I am wrong) >>>a = [1,2,3,4] >>>a [1, 2, 3, 4] >>>b = list(map(lambda x:x,a)) >>>b [1, 2, 3, 4] however when I want to know their size with help of sys.getsizeof method sys.getsizeof(a) returns 96 whereas sys.getsizeof(b) returns 120 so can anyone help me to understand why is this happening? PS: i was just trying out map