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

Related questions

0 votes
asked Jan 1, 2021 in Python by SakshiSharma
0 votes
asked Oct 12, 2021 in Python by rajeshsharma
...