Article Outline
Python example 'python code find memory used by obj'
Modules used in program:
import sys
python code find memory used by obj
Python code example: python code find memory used by obj
#Find memory used by an object
import sys
print(sys.getsizeof(6))
Useful links
- Learn Python: https://pythonbasics.org
- Download Python: https://python.org
More Python: https://pythonprogramminglanguage.com