Size of datatypes

#1

What are the sizes of variables of different data types in python? Is there any function which helps us to find out the sizes?

#2

The amount of memory allocated to a data object can vary from one language/system to another. Newer iterations of most languages support 64 bit architecture which greatly expands the size of data objects when compared to 32 bit.

https://code.tutsplus.com/tutorials/understand-how-much-memory-your-python-objects-use--cms-25609

It will take some digging to find out data object sizes in other languages.

1 Like