Answers for "python how much memory does a variable need"

0

python how much memory does a variable need

from sys import getsizeof
a = 42
getsizeof(a) # size of object in bytes
Posted by: Guest on May-18-2021

Code answers related to "python how much memory does a variable need"

Python Answers by Framework

Browse Popular Code Answers by Language