python how much memory does a variable need

Solutions on MaxInterview for python how much memory does a variable need by the best coders in the world

showing results for - "python how much memory does a variable need"
Mateo
12 Oct 2018
1from sys import getsizeof
2a = 42
3getsizeof(a) # size of object in bytes