I want to know how to get size of objects like a string, integer, etc. in Python.
Related question: How many bytes per element are there in a Python list (tuple)?
Here is a quick script I wrote based on the previous answers to list sizes of all variables
for i in dir(): print (i, sys.getsizeof(eval(i)) )