Login
Remember
Register
Ask a Question
Check the memory usage of an object in python
0
votes
asked
May 24, 2020
in
Python
by
SakshiSharma
Check the memory usage of an object
#python-memory
#memory-python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 24, 2020
by
Robindeniel
import sys
x = 10
print(sys.getsizeof(x))
Output:
1
...