I am trying to find out a variable size in memory. So I tried using sys.getsizeof(var)
but I keep getting an error:
AttributeError: 'module' object has no attribute 'getsizeof'
I searched for solutions online but still no luck. I also re-installed the Python version that I am using and I am still having the same problem.