Problem Statement
What does sys.getsizeof(x) report?
Explanation
getsizeof returns the shallow size of the object in bytes. It does not include sizes of nested objects it references.
To estimate full footprint, you must traverse the object graph and sum sizes manually or use third party tools.
Code Solution
SolutionRead Only
import sys print(sys.getsizeof([1,2,3]))
