0 votes
in Python by
Check the memory usage of  an object

1 Answer

0 votes
by
import sys

x = 10

print(sys.getsizeof(x))

Output:

1
...