Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

# find out of the memory of the python object

# find out of the memory of the python object
import sys
List_01 = [[1, 2, 3, 4,20,30,40], [5, 6, 7,99,97,98], [81, 9, 100]]
sys.getsizeof(List_01)
my_var = 'Python Rocks'
sys.getsizeof(my_var)

Output:
96
64
 
PREVIOUS NEXT
Tagged: #find #memory #python #object
ADD COMMENT
Topic
Name
6+3 =