How to find out how much memory is used for an object in python import sys x =1 print(sys.getsizeof(x)) Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Like this:Like Loading... Related